1 database.inc public DatabaseConnection::insert($table, array $options = array())

Prepares and returns an INSERT query object.

Parameters

string $table: The table into which data will be inserted.

array $options: An array of options on the query.

Return value

InsertQuery: A new InsertQuery object.

See also

InsertQuery

File

core/includes/database/database.inc, line 893
Core systems for the database layer.

Class

DatabaseConnection
Base Database API class.

Code

public function insert($table, array $options = array()) {
  $class = $this->getDriverClass('InsertQuery', array('query.inc'));
  return new $class($this, $table, $options);
}