dibi
class dibi
Static container class for Dibi connections.
Constants
AFFECTED_ROWS |
|
IDENTIFIER |
|
VERSION |
version |
ASC |
sorting order |
DESC |
sorting order |
Properties
static | $sql | Last SQL command dibi::query() |
|
static | $elapsedTime | Elapsed time for last query |
|
static | $totalTime | Elapsed time for all queries |
|
static | $numOfQueries | Number or queries |
Methods
Static class - cannot be instantiated.
Creates a new Connection object and connects it to specified database.
Returns true when connection was established.
Retrieve active connection.
Monostate for Dibi\Connection.
Prints out a syntax highlighted version of the SQL command or Result.
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
Details
at line 74
final
__construct()
Static class - cannot be instantiated.
at line 88
static Connection
connect(array $config = [], string $name = '0')
Creates a new Connection object and connects it to specified database.
at line 97
static bool
isConnected()
Returns true when connection was established.
at line 107
static Connection
getConnection(string|null $name = null)
Retrieve active connection.
at line 128
static Connection
setConnection(Connection $connection)
Sets connection.
at line 140
static
__callStatic(string $name, array $args)
Monostate for Dibi\Connection.
at line 153
static string|null
dump(Result|null $sql = null, bool $return = false)
Prints out a syntax highlighted version of the SQL command or Result.
at line 162
static DateTimeInterface
stripMicroseconds(DateTimeInterface $dt)
Strips microseconds part.
at line 38
static void
disconnect()
No description
at line 38
static Result
query(mixed $args)
No description
at line 38
static Result
nativeQuery(mixed $args)
No description
at line 38
static bool
test(mixed $args)
No description
at line 38
static DataSource
dataSource(mixed $args)
No description
at line 38
static Row|null
fetch(mixed $args)
No description
at line 38
static array
fetchAll(mixed $args)
No description
at line 38
static mixed
fetchSingle(mixed $args)
No description
at line 38
static array
fetchPairs(mixed $args)
No description
at line 38
static int
getAffectedRows()
No description
at line 38
static int
getInsertId(string $sequence = null)
No description
at line 38
static void
begin(string $savepoint = null)
No description
at line 38
static void
commit(string $savepoint = null)
No description
at line 38
static void
rollback(string $savepoint = null)
No description
at line 38
static mixed
transaction(callable $callback)
No description
at line 38
static Database
getDatabaseInfo()
No description
at line 38
static Fluent
command()
No description
at line 38
static Fluent
select(mixed $args)
No description
at line 38
static Fluent
update(string|string[] $table, array $args)
No description
at line 38
static Fluent
insert(string $table, array $args)
No description
at line 38
static Fluent
delete(string $table)
No description
at line 38
static HashMap
getSubstitutes()
No description
at line 38
static int
loadFile(string $file)
No description