Source of file common.php

Size: 2,647 Bytes - Last Modified: 2018-01-25T14:51:55+00:00

src/common.php

123456789101112131415161718192021222324252627282930313233
Covered by 196 test(s):
  • Query\Tests\Drivers\MySQL\MySQLDriverTest::testCreateTable
  • Query\Tests\Drivers\MySQL\MySQLDriverTest::testTruncate
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testQueryExplain
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testFunctionGet
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testGet
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testPrefixGet
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testGetWNumRows
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testGetLimit
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testGetLimitSkip
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testGetWhere
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testHaving
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testOrHaving
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testSelectWhereGet
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testSelectAvg
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testSelectSum
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testSelectDistinct
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testSelectGet
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testSelectFromGet
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testSelectFromLimitGet
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testSelectWhereGet2
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testSelectMax
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testSelectMin
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testMultiOrderBy
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testGroup
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testOrGroup
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testOrNotGroup
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testAndNotGroupStart
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testNotGroupStart
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testGroupCamelCase
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testWhereIn
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testOrWhereIn
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testWhereNotIn
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testOrWhereNotIn
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testOrderBy
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testOrderByRandom
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testGroupBy
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testOrWhere
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testLike
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testOrLike
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testOrNotLike
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testNotLike
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testLikeBefore
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testLikeAfter
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testJoin
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testLeftJoin
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testInnerJoin
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testJoinWithMultipleWhereValues
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testInsert
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testInsertArray
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testInsertBatch
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testUpdate
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testDriverUpdateBatch
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testSetArrayUpdate
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testWhereSetUpdate
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testDelete
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testDeleteWithMultipleWhereValues
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testCountAll
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testCountAllResults
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testCountAllResults2
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testNumRows
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testGetCompiledSelect
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testGetCompiledUpdate
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testGetCompiledInsert
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testGetCompiledDelete
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testBadNumRows
  • Query\Tests\Drivers\PgSQL\PgSQLDriverTest::testCreateTable
  • Query\Tests\Drivers\PgSQL\PgSQLDriverTest::testTruncate
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testQueryExplain
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testFunctionGet
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testGet
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testPrefixGet
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testGetWNumRows
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testGetLimit
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testGetLimitSkip
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testGetWhere
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testHaving
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testOrHaving
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testSelectWhereGet
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testSelectAvg
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testSelectSum
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testSelectDistinct
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testSelectGet
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testSelectFromGet
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testSelectFromLimitGet
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testSelectWhereGet2
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testSelectMax
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testSelectMin
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testMultiOrderBy
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testGroup
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testOrGroup
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testOrNotGroup
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testAndNotGroupStart
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testNotGroupStart
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testGroupCamelCase
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testWhereIn
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testOrWhereIn
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testWhereNotIn
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testOrWhereNotIn
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testOrderBy
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testOrderByRandom
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testGroupBy
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testOrWhere
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testLike
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testOrLike
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testOrNotLike
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testNotLike
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testLikeBefore
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testLikeAfter
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testJoin
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testLeftJoin
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testInnerJoin
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testJoinWithMultipleWhereValues
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testInsert
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testInsertArray
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testInsertBatch
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testUpdate
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testDriverUpdateBatch
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testSetArrayUpdate
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testWhereSetUpdate
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testDelete
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testDeleteWithMultipleWhereValues
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testCountAll
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testCountAllResults
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testCountAllResults2
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testNumRows
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testGetCompiledSelect
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testGetCompiledUpdate
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testGetCompiledInsert
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testGetCompiledDelete
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testBadNumRows
  • Query\Tests\Drivers\SQLite\SQLiteDriverTest::testBackupStructure
  • Query\Tests\Drivers\SQLite\SQLiteDriverTest::testDeleteTable
  • Query\Tests\Drivers\SQLite\SQLiteDriverTest::testTruncate
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testQueryExplain
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testFunctionGet
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testGet
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testPrefixGet
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testGetWNumRows
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testGetLimit
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testGetLimitSkip
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testGetWhere
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testHaving
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testOrHaving
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testSelectWhereGet
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testSelectAvg
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testSelectSum
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testSelectDistinct
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testSelectGet
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testSelectFromGet
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testSelectFromLimitGet
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testSelectWhereGet2
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testSelectMax
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testSelectMin
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testMultiOrderBy
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testGroup
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testOrGroup
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testOrNotGroup
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testAndNotGroupStart
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testNotGroupStart
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testGroupCamelCase
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testWhereIn
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testOrWhereIn
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testWhereNotIn
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testOrWhereNotIn
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testOrderBy
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testOrderByRandom
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testGroupBy
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testOrWhere
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testLike
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testOrLike
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testOrNotLike
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testNotLike
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testLikeBefore
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testLikeAfter
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testJoin
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testLeftJoin
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testInnerJoin
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testJoinWithMultipleWhereValues
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testInsert
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testInsertArray
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testInsertBatch
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testUpdate
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testDriverUpdateBatch
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testSetArrayUpdate
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testWhereSetUpdate
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testDelete
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testDeleteWithMultipleWhereValues
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testCountAll
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testCountAllResults
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testCountAllResults2
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testNumRows
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testGetCompiledSelect
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testGetCompiledUpdate
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testGetCompiledInsert
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testGetCompiledDelete
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testBadNumRows
343536373839404142434445
Covered by 19 test(s):
  • Query\Tests\Drivers\MySQL\MySQLDriverTest::testCreateTable
  • Query\Tests\Drivers\MySQL\MySQLDriverTest::testBackup
  • Query\Tests\Drivers\MySQL\MySQLDriverTest::testGetTables
  • Query\Tests\Drivers\MySQL\MySQLDriverTest::testGetSystemTables
  • Query\Tests\Drivers\MySQL\MySQLDriverTest::testBackupData
  • Query\Tests\Drivers\MySQL\MySQLDriverTest::testGetViews
  • Query\Tests\Drivers\PgSQL\PgSQLDriverTest::testCreateTable
  • Query\Tests\Drivers\PgSQL\PgSQLDriverTest::testGetSchemas
  • Query\Tests\Drivers\PgSQL\PgSQLDriverTest::testGetDBs
  • Query\Tests\Drivers\PgSQL\PgSQLDriverTest::testGetTables
  • Query\Tests\Drivers\PgSQL\PgSQLDriverTest::testGetSystemTables
  • Query\Tests\Drivers\PgSQL\PgSQLDriverTest::testBackupData
  • Query\Tests\Drivers\PgSQL\PgSQLDriverTest::testGetViews
  • Query\Tests\Drivers\PgSQL\PgSQLDriverTest::testGetSequences
  • Query\Tests\Drivers\SQLite\SQLiteDriverTest::testCreateTable
  • Query\Tests\Drivers\SQLite\SQLiteDriverTest::testDeleteTable
  • Query\Tests\Drivers\SQLite\SQLiteDriverTest::testGetDBs
  • Query\Tests\Drivers\SQLite\SQLiteDriverTest::testGetTables
  • Query\Tests\Drivers\SQLite\SQLiteDriverTest::testGetViews
4647
Covered by 19 test(s):
  • Query\Tests\Drivers\MySQL\MySQLDriverTest::testCreateTable
  • Query\Tests\Drivers\MySQL\MySQLDriverTest::testBackup
  • Query\Tests\Drivers\MySQL\MySQLDriverTest::testGetTables
  • Query\Tests\Drivers\MySQL\MySQLDriverTest::testGetSystemTables
  • Query\Tests\Drivers\MySQL\MySQLDriverTest::testBackupData
  • Query\Tests\Drivers\MySQL\MySQLDriverTest::testGetViews
  • Query\Tests\Drivers\PgSQL\PgSQLDriverTest::testCreateTable
  • Query\Tests\Drivers\PgSQL\PgSQLDriverTest::testGetSchemas
  • Query\Tests\Drivers\PgSQL\PgSQLDriverTest::testGetDBs
  • Query\Tests\Drivers\PgSQL\PgSQLDriverTest::testGetTables
  • Query\Tests\Drivers\PgSQL\PgSQLDriverTest::testGetSystemTables
  • Query\Tests\Drivers\PgSQL\PgSQLDriverTest::testBackupData
  • Query\Tests\Drivers\PgSQL\PgSQLDriverTest::testGetViews
  • Query\Tests\Drivers\PgSQL\PgSQLDriverTest::testGetSequences
  • Query\Tests\Drivers\SQLite\SQLiteDriverTest::testCreateTable
  • Query\Tests\Drivers\SQLite\SQLiteDriverTest::testDeleteTable
  • Query\Tests\Drivers\SQLite\SQLiteDriverTest::testGetDBs
  • Query\Tests\Drivers\SQLite\SQLiteDriverTest::testGetTables
  • Query\Tests\Drivers\SQLite\SQLiteDriverTest::testGetViews
4849
Covered by 19 test(s):
  • Query\Tests\Drivers\MySQL\MySQLDriverTest::testCreateTable
  • Query\Tests\Drivers\MySQL\MySQLDriverTest::testBackup
  • Query\Tests\Drivers\MySQL\MySQLDriverTest::testGetTables
  • Query\Tests\Drivers\MySQL\MySQLDriverTest::testGetSystemTables
  • Query\Tests\Drivers\MySQL\MySQLDriverTest::testBackupData
  • Query\Tests\Drivers\MySQL\MySQLDriverTest::testGetViews
  • Query\Tests\Drivers\PgSQL\PgSQLDriverTest::testCreateTable
  • Query\Tests\Drivers\PgSQL\PgSQLDriverTest::testGetSchemas
  • Query\Tests\Drivers\PgSQL\PgSQLDriverTest::testGetDBs
  • Query\Tests\Drivers\PgSQL\PgSQLDriverTest::testGetTables
  • Query\Tests\Drivers\PgSQL\PgSQLDriverTest::testGetSystemTables
  • Query\Tests\Drivers\PgSQL\PgSQLDriverTest::testBackupData
  • Query\Tests\Drivers\PgSQL\PgSQLDriverTest::testGetViews
  • Query\Tests\Drivers\PgSQL\PgSQLDriverTest::testGetSequences
  • Query\Tests\Drivers\SQLite\SQLiteDriverTest::testCreateTable
  • Query\Tests\Drivers\SQLite\SQLiteDriverTest::testDeleteTable
  • Query\Tests\Drivers\SQLite\SQLiteDriverTest::testGetDBs
  • Query\Tests\Drivers\SQLite\SQLiteDriverTest::testGetTables
  • Query\Tests\Drivers\SQLite\SQLiteDriverTest::testGetViews
505152
Covered by 19 test(s):
  • Query\Tests\Drivers\MySQL\MySQLDriverTest::testCreateTable
  • Query\Tests\Drivers\MySQL\MySQLDriverTest::testBackup
  • Query\Tests\Drivers\MySQL\MySQLDriverTest::testGetTables
  • Query\Tests\Drivers\MySQL\MySQLDriverTest::testGetSystemTables
  • Query\Tests\Drivers\MySQL\MySQLDriverTest::testBackupData
  • Query\Tests\Drivers\MySQL\MySQLDriverTest::testGetViews
  • Query\Tests\Drivers\PgSQL\PgSQLDriverTest::testCreateTable
  • Query\Tests\Drivers\PgSQL\PgSQLDriverTest::testGetSchemas
  • Query\Tests\Drivers\PgSQL\PgSQLDriverTest::testGetDBs
  • Query\Tests\Drivers\PgSQL\PgSQLDriverTest::testGetTables
  • Query\Tests\Drivers\PgSQL\PgSQLDriverTest::testGetSystemTables
  • Query\Tests\Drivers\PgSQL\PgSQLDriverTest::testBackupData
  • Query\Tests\Drivers\PgSQL\PgSQLDriverTest::testGetViews
  • Query\Tests\Drivers\PgSQL\PgSQLDriverTest::testGetSequences
  • Query\Tests\Drivers\SQLite\SQLiteDriverTest::testCreateTable
  • Query\Tests\Drivers\SQLite\SQLiteDriverTest::testDeleteTable
  • Query\Tests\Drivers\SQLite\SQLiteDriverTest::testGetDBs
  • Query\Tests\Drivers\SQLite\SQLiteDriverTest::testGetTables
  • Query\Tests\Drivers\SQLite\SQLiteDriverTest::testGetViews
5354555657585960616263646566
Covered by 2 test(s):
  • Query\Tests\Drivers\MySQL\MySQLDriverTest::testCreateTable
  • Query\Tests\Drivers\PgSQL\PgSQLDriverTest::testCreateTable
6768
Covered by 2 test(s):
  • Query\Tests\Drivers\MySQL\MySQLDriverTest::testCreateTable
  • Query\Tests\Drivers\PgSQL\PgSQLDriverTest::testCreateTable
6970
Covered by 2 test(s):
  • Query\Tests\Drivers\MySQL\MySQLDriverTest::testCreateTable
  • Query\Tests\Drivers\PgSQL\PgSQLDriverTest::testCreateTable
7172
Covered by 2 test(s):
  • Query\Tests\Drivers\MySQL\MySQLDriverTest::testCreateTable
  • Query\Tests\Drivers\PgSQL\PgSQLDriverTest::testCreateTable
7374
Covered by 2 test(s):
  • Query\Tests\Drivers\MySQL\MySQLDriverTest::testCreateTable
  • Query\Tests\Drivers\PgSQL\PgSQLDriverTest::testCreateTable
7576
Covered by 2 test(s):
  • Query\Tests\Drivers\MySQL\MySQLDriverTest::testCreateTable
  • Query\Tests\Drivers\PgSQL\PgSQLDriverTest::testCreateTable
77787980
Covered by 2 test(s):
  • Query\Tests\Drivers\MySQL\MySQLDriverTest::testCreateTable
  • Query\Tests\Drivers\PgSQL\PgSQLDriverTest::testCreateTable
81828384858687888990919293
Covered by 46 test(s):
  • Query\Tests\CoreTest::testEmptyRegexInArray
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testQueryExplain
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testSelectWhereGet
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testGroup
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testOrGroup
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testOrNotGroup
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testAndNotGroupStart
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testNotGroupStart
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testGroupCamelCase
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testOrderBy
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testOrderByRandom
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testGroupBy
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testOrWhere
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testJoinWithMultipleWhereValues
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testDeleteWithMultipleWhereValues
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testCountAllResults2
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testQueryExplain
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testSelectWhereGet
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testGroup
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testOrGroup
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testOrNotGroup
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testAndNotGroupStart
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testNotGroupStart
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testGroupCamelCase
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testOrderBy
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testOrderByRandom
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testGroupBy
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testOrWhere
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testJoinWithMultipleWhereValues
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testDeleteWithMultipleWhereValues
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testCountAllResults2
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testQueryExplain
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testSelectWhereGet
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testGroup
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testOrGroup
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testOrNotGroup
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testAndNotGroupStart
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testNotGroupStart
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testGroupCamelCase
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testOrderBy
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testOrderByRandom
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testGroupBy
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testOrWhere
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testJoinWithMultipleWhereValues
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testDeleteWithMultipleWhereValues
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testCountAllResults2
9495
Covered by 1 test(s):
  • Query\Tests\CoreTest::testEmptyRegexInArray
969798
Covered by 45 test(s):
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testQueryExplain
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testSelectWhereGet
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testGroup
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testOrGroup
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testOrNotGroup
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testAndNotGroupStart
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testNotGroupStart
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testGroupCamelCase
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testOrderBy
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testOrderByRandom
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testGroupBy
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testOrWhere
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testJoinWithMultipleWhereValues
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testDeleteWithMultipleWhereValues
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testCountAllResults2
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testQueryExplain
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testSelectWhereGet
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testGroup
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testOrGroup
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testOrNotGroup
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testAndNotGroupStart
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testNotGroupStart
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testGroupCamelCase
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testOrderBy
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testOrderByRandom
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testGroupBy
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testOrWhere
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testJoinWithMultipleWhereValues
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testDeleteWithMultipleWhereValues
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testCountAllResults2
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testQueryExplain
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testSelectWhereGet
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testGroup
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testOrGroup
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testOrNotGroup
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testAndNotGroupStart
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testNotGroupStart
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testGroupCamelCase
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testOrderBy
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testOrderByRandom
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testGroupBy
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testOrWhere
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testJoinWithMultipleWhereValues
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testDeleteWithMultipleWhereValues
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testCountAllResults2
99100
Covered by 45 test(s):
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testQueryExplain
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testSelectWhereGet
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testGroup
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testOrGroup
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testOrNotGroup
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testAndNotGroupStart
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testNotGroupStart
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testGroupCamelCase
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testOrderBy
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testOrderByRandom
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testGroupBy
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testOrWhere
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testJoinWithMultipleWhereValues
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testDeleteWithMultipleWhereValues
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testCountAllResults2
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testQueryExplain
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testSelectWhereGet
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testGroup
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testOrGroup
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testOrNotGroup
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testAndNotGroupStart
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testNotGroupStart
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testGroupCamelCase
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testOrderBy
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testOrderByRandom
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testGroupBy
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testOrWhere
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testJoinWithMultipleWhereValues
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testDeleteWithMultipleWhereValues
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testCountAllResults2
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testQueryExplain
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testSelectWhereGet
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testGroup
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testOrGroup
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testOrNotGroup
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testAndNotGroupStart
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testNotGroupStart
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testGroupCamelCase
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testOrderBy
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testOrderByRandom
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testGroupBy
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testOrWhere
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testJoinWithMultipleWhereValues
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testDeleteWithMultipleWhereValues
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testCountAllResults2
101102
Covered by 45 test(s):
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testQueryExplain
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testSelectWhereGet
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testGroup
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testOrGroup
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testOrNotGroup
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testAndNotGroupStart
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testNotGroupStart
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testGroupCamelCase
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testOrderBy
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testOrderByRandom
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testGroupBy
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testOrWhere
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testJoinWithMultipleWhereValues
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testDeleteWithMultipleWhereValues
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testCountAllResults2
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testQueryExplain
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testSelectWhereGet
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testGroup
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testOrGroup
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testOrNotGroup
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testAndNotGroupStart
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testNotGroupStart
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testGroupCamelCase
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testOrderBy
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testOrderByRandom
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testGroupBy
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testOrWhere
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testJoinWithMultipleWhereValues
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testDeleteWithMultipleWhereValues
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testCountAllResults2
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testQueryExplain
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testSelectWhereGet
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testGroup
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testOrGroup
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testOrNotGroup
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testAndNotGroupStart
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testNotGroupStart
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testGroupCamelCase
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testOrderBy
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testOrderByRandom
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testGroupBy
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testOrWhere
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testJoinWithMultipleWhereValues
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testDeleteWithMultipleWhereValues
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testCountAllResults2
103104105106
Covered by 3 test(s):
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testJoinWithMultipleWhereValues
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testJoinWithMultipleWhereValues
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testJoinWithMultipleWhereValues
107108109110111112113114115116117118119120121122
Covered by 8 test(s):
  • Query\Tests\CoreTest::testNullQuery
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testInvalidConnectionName
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testBadDriver
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testInvalidConnectionName
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testBadDriver
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testQueryFunctionAlias
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testInvalidConnectionName
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testBadDriver
123124
Covered by 1 test(s):
  • Query\Tests\CoreTest::testNullQuery
125126127
Covered by 7 test(s):
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testInvalidConnectionName
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testBadDriver
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testInvalidConnectionName
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testBadDriver
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testQueryFunctionAlias
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testInvalidConnectionName
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testBadDriver
128129130
Covered by 7 test(s):
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testInvalidConnectionName
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testBadDriver
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testInvalidConnectionName
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testBadDriver
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testQueryFunctionAlias
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testInvalidConnectionName
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testBadDriver
131132
Covered by 4 test(s):
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testInvalidConnectionName
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testInvalidConnectionName
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testQueryFunctionAlias
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testInvalidConnectionName
133134135
Covered by 3 test(s):
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testBadDriver
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testBadDriver
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testBadDriver
136137138
Covered by 3 test(s):
  • Query\Tests\Drivers\MySQL\MySQLQueryBuilderTest::testBadDriver
  • Query\Tests\Drivers\PgSQL\PgSQLQueryBuilderTest::testBadDriver
  • Query\Tests\Drivers\SQLite\SQLiteQueryBuilderTest::testBadDriver
139140141142
<?php declare(strict_types=1);
/**
 * Query
 *
 * SQL Query Builder / Database Abstraction Layer
 *
 * PHP version 7
 *
 * @package     Query
 * @author      Timothy J. Warren <tim@timshomepage.net>
 * @copyright   2012 - 2016 Timothy J. Warren
 * @license     http://www.opensource.org/licenses/mit-license.html  MIT License
 * @link        https://git.timshomepage.net/aviat4ion/Query
 */

use Query\{
    ConnectionManager,
    QueryBuilderInterface
};

/**
 * Global functions that don't really fit anywhere else
 */

/**
 * Multibyte-safe trim function
 *
 * @param string $string
 * @return string
 */
function mb_trim(string $string): string
{
	return preg_replace('/(^\s+)|(\s+$)/u', '', $string);
}

/**
 * Filter out db rows into one array
 *
 * @param array $array
 * @param mixed $index
 * @return array
 */
function dbFilter(array $array, $index): array
{
	$newArray = [];

	foreach($array as $a)
	{
		$newArray[] = $a[$index];
	}

	return $newArray;
}

/**
 * Zip a set of arrays together on common keys
 *
 * The $zipperInput array is an array of arrays indexed by their place in the output
 * array.
 *
 * @param array $zipperInput
 * @return array
 */
function arrayZipper(array $zipperInput): array
{
	$output = [];

	foreach($zipperInput as $appendKey => $values)
	{
		foreach($values as $index => $value)
		{
			if ( ! isset($output[$index]))
			{
				$output[$index] = [];
			}
			$output[$index][$appendKey] = $value;
		}
	}

	return $output;
}

/**
 * Determine whether a value in the passed array matches the pattern
 * passed
 *
 * @param array $array
 * @param string $pattern
 * @return bool
 */
function regexInArray(array $array, string $pattern): bool
{
	if (empty($array))
	{
		return FALSE;
	}

	foreach($array as $item)
	{
		if (is_scalar($item) && preg_match($pattern, $item))
		{
			return TRUE;
		}
	}

	return FALSE;
}

/**
 * Connection function
 *
 * Send an array or object as connection parameters to create a connection. If
 * the array or object has an 'alias' parameter, passing that string to this
 * function will return that connection. Passing no parameters returns the last
 * connection created.
 *
 * @param string|object|array $params
 * @return QueryBuilderInterface|null
 */
function Query($params = ''): ?QueryBuilderInterface
{
	if ($params === NULL)
	{
		return NULL;
	}

	$manager = ConnectionManager::getInstance();

	// If you are getting a previously created connection
	if (is_scalar($params))
	{
		return $manager->getConnection($params);
	}

	$paramsObject = (object) $params;

	// Otherwise, return a new connection
	return $manager->connect($paramsObject);
}

// End of common.php