Query\QueryBuilder::insert
Creates an insert clause, and executes it
Signature
public function insert(string
$table,
[array
$data = ] )
Parameters
$table
—
string
$data
—
array
Returns
- PDOStatement
Defined by Interface
QueryBuilderInterface
Test Coverage
Information
- Coverage: 2/2 Lines (100%)
- Tests: 12
- Passed: 12 (100%)
Tests
- [ PASSED ] — MySQLQBTest::testInsert
- [ PASSED ] — MySQLQBTest::testInsertArray
- [ PASSED ] — MySQLQBTest::testBadNumRows
- [ PASSED ] — PgSQLQBTest::testInsert
- [ PASSED ] — PgSQLQBTest::testInsertArray
- [ PASSED ] — PgSQLQBTest::testBadNumRows
- [ PASSED ] — SQLiteQBTest::testInsert
- [ PASSED ] — SQLiteQBTest::testInsertArray
- [ PASSED ] — SQLiteQBTest::testBadNumRows
- [ PASSED ] — FirebirdQBTest::testInsert
- [ PASSED ] — FirebirdQBTest::testInsertArray
- [ PASSED ] — FirebirdQBTest::testBadNumRows