method getInsert documentation in bbn\Db

Returns the SQL code for an INSERT statement.

Example

X::dump($db->getInsert([ 'tables' => ['table_users'], 'fields' => ['name','surname'] ])); /* (string) INSERT INTO `db_example`.`table_users` ( `name`, `surname`) VALUES (?, ?) function(array $cfg) { $this->ensureLanguageMethodExists(__FUNCTION__); $cfg['kind'] = 'INSERT'; return $this->language->getInsert($this->processCfg($cfg)); }

Returns the SQL code for an INSERT statement. BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way

This website uses cookies to ensure you get the best experience on our website.