->insert()
Inserts one or multiple records in the database.
Arguments
| Arguments | Type | Description |
|---|---|---|
thing
|
string
|
The table name or RecordId to insert to.
|
data
|
associative array
| Either a single document/record or an array of documents/records to insert |
Example usage
Translated query
This function will run the following query in the database.