Skip to content

orm_create

imshooter edited this page Nov 29, 2026 · 1 revision

Create an ORM, a row of a table mapped to variables of the script.

native ORM:orm_create(const table[], MySQL:handle = MYSQL_DEFAULT_HANDLE);

With open.mp names, from the same include:

native ORM:ORM_Create(const table[], MySQL:handle = MYSQL_DEFAULT_HANDLE);

Parameters

Parameter Description
const table[] The table.
MySQL:handle = MYSQL_DEFAULT_HANDLE Handle its queries go through.

Returns

  • The ORM.
  • MYSQL_INVALID_ORM when the handle does not exist, or the table has no name.

Home

Guides

Reference

Functions

Connections
Queries
Cache
JSON cells
ORM
Queries built in pieces
Prepared statements
Batches
Transactions
Passwords
Callbacks

Clone this wiki locally