diff --git a/examples/connecting-to-databases.php b/examples/connecting-to-databases.php index 0c113b3e..c01ab7a8 100644 --- a/examples/connecting-to-databases.php +++ b/examples/connecting-to-databases.php @@ -3,7 +3,7 @@ declare(strict_types=1); ?> -

Connecting to Databases | dibi

+

Connecting to Databases | Dibi

Connecting to Sqlite: '; try { dibi::connect([ diff --git a/examples/database-reflection.php b/examples/database-reflection.php index 3f1a4c64..ea4c5be6 100644 --- a/examples/database-reflection.php +++ b/examples/database-reflection.php @@ -3,7 +3,7 @@ declare(strict_types=1); ?> -

Database Reflection | dibi

+

Database Reflection | Dibi

-

Dumping SQL and Result Set | dibi

+

Dumping SQL and Result Set | Dibi

-

Fetching Examples | dibi

+

Fetching Examples | Dibi

-

Importing SQL Dump from File | dibi

+

Importing SQL Dump from File | Dibi

-

Query Language & Conditions | dibi

+

Query Language & Conditions | Dibi

-

Query Language Basic Examples | dibi

+

Query Language Basic Examples | Dibi

-

Result Set Data Types | dibi

+

Result Set Data Types | Dibi

-

Using DateTime | dibi

+

Using DateTime | Dibi

-

Using Fluent Syntax | dibi

+

Using Fluent Syntax | Dibi

-

Using Limit & Offset | dibi

+

Using Limit & Offset | Dibi

-

Using Logger | dibi

+

Using Logger | Dibi

-

Using Substitutions | dibi

+

Using Substitutions | Dibi

-

Using Transactions | dibi

+

Using Transactions | Dibi

config['driver']))); $class = "Dibi\\Drivers\\{$class}Driver"; if (!class_exists($class)) { - throw new Exception("Unable to create instance of dibi driver '$class'."); + throw new Exception("Unable to create instance of Dibi driver '$class'."); } } diff --git a/src/Dibi/DataSource.php b/src/Dibi/DataSource.php index 7967f2d1..2496ce32 100644 --- a/src/Dibi/DataSource.php +++ b/src/Dibi/DataSource.php @@ -1,7 +1,7 @@ connection; diff --git a/src/Dibi/DateTime.php b/src/Dibi/DateTime.php index 7c9310ec..ac2bb65d 100644 --- a/src/Dibi/DateTime.php +++ b/src/Dibi/DateTime.php @@ -1,7 +1,7 @@ the path to database file (server:/path/database.fdb) diff --git a/src/Dibi/Drivers/FirebirdReflector.php b/src/Dibi/Drivers/FirebirdReflector.php index 277d8cf3..29ae152b 100644 --- a/src/Dibi/Drivers/FirebirdReflector.php +++ b/src/Dibi/Drivers/FirebirdReflector.php @@ -1,7 +1,7 @@ the MySQL server host name diff --git a/src/Dibi/Drivers/MySqliResult.php b/src/Dibi/Drivers/MySqliResult.php index d8c9bbd1..67a5a86e 100644 --- a/src/Dibi/Drivers/MySqliResult.php +++ b/src/Dibi/Drivers/MySqliResult.php @@ -1,7 +1,7 @@ driver specific DSN diff --git a/src/Dibi/Drivers/OdbcReflector.php b/src/Dibi/Drivers/OdbcReflector.php index 07cd79e7..0b53294b 100644 --- a/src/Dibi/Drivers/OdbcReflector.php +++ b/src/Dibi/Drivers/OdbcReflector.php @@ -1,7 +1,7 @@ the name of the local Oracle instance or the name of the entry in tnsnames.ora diff --git a/src/Dibi/Drivers/OracleReflector.php b/src/Dibi/Drivers/OracleReflector.php index 96b3b240..0598a5e4 100644 --- a/src/Dibi/Drivers/OracleReflector.php +++ b/src/Dibi/Drivers/OracleReflector.php @@ -1,7 +1,7 @@ driver specific DSN diff --git a/src/Dibi/Drivers/PdoResult.php b/src/Dibi/Drivers/PdoResult.php index 0b9306f8..a0eaf8f1 100644 --- a/src/Dibi/Drivers/PdoResult.php +++ b/src/Dibi/Drivers/PdoResult.php @@ -1,7 +1,7 @@ see PostgreSQL API diff --git a/src/Dibi/Drivers/PostgreReflector.php b/src/Dibi/Drivers/PostgreReflector.php index a6bcb7ea..e1e926d5 100644 --- a/src/Dibi/Drivers/PostgreReflector.php +++ b/src/Dibi/Drivers/PostgreReflector.php @@ -1,7 +1,7 @@ the filename of the SQLite3 database diff --git a/src/Dibi/Drivers/Sqlite3Result.php b/src/Dibi/Drivers/Sqlite3Result.php index ae67fde7..220cf004 100644 --- a/src/Dibi/Drivers/Sqlite3Result.php +++ b/src/Dibi/Drivers/Sqlite3Result.php @@ -1,7 +1,7 @@ the MS SQL server host name. It can also include a port number (hostname:port) diff --git a/src/Dibi/Drivers/SqlsrvReflector.php b/src/Dibi/Drivers/SqlsrvReflector.php index 57af22d9..5eda90b3 100644 --- a/src/Dibi/Drivers/SqlsrvReflector.php +++ b/src/Dibi/Drivers/SqlsrvReflector.php @@ -1,7 +1,7 @@ connection; diff --git a/src/Dibi/HashMap.php b/src/Dibi/HashMap.php index b17b15c1..59790c12 100644 --- a/src/Dibi/HashMap.php +++ b/src/Dibi/HashMap.php @@ -1,7 +1,7 @@ - * $result = dibi::query('SELECT * FROM [table]'); - * - * $row = $result->fetch(); - * $value = $result->fetchSingle(); - * $table = $result->fetchAll(); - * $pairs = $result->fetchPairs(); - * $assoc = $result->fetchAssoc('col1'); - * $assoc = $result->fetchAssoc('col1[]col2->col3'); - * - * unset($result); - * + * Query result. * * @property-read int $rowCount */ diff --git a/src/Dibi/ResultIterator.php b/src/Dibi/ResultIterator.php index 2fa96dce..a4ee1daa 100644 --- a/src/Dibi/ResultIterator.php +++ b/src/Dibi/ResultIterator.php @@ -1,7 +1,7 @@ - * $result = dibi::query('SELECT * FROM table'); - * foreach ($result as $row) { - * print_r($row); - * } - * unset($result); - * */ class ResultIterator implements \Iterator, \Countable { diff --git a/src/Dibi/Row.php b/src/Dibi/Row.php index a071982f..ff57523a 100644 --- a/src/Dibi/Row.php +++ b/src/Dibi/Row.php @@ -1,7 +1,7 @@ "'Y-m-d H:i:s.u'", 'formatDate' => "'Y-m-d'"]); -// dibi detects INSERT or REPLACE command & booleans +// Dibi detects INSERT or REPLACE command & booleans Assert::same( reformat("REPLACE INTO [products] ([title], [price]) VALUES ('Drticka', 318)"), $conn->translate('REPLACE INTO [products]', [ @@ -48,7 +48,7 @@ Assert::same( ); -// dibi detects UPDATE command +// Dibi detects UPDATE command Assert::same( reformat("UPDATE [colors] SET [color]='blue', [order]=12 WHERE [id]=123"), $conn->translate('UPDATE [colors] SET', [