dibi
class dibi
Static container class for Dibi connections.
Constants
AFFECTED_ROWS |
|
IDENTIFIER |
|
VERSION |
version |
ASC |
sorting order |
DESC |
sorting order |
Properties
static string|null | $sql | ||
static float|null | $elapsedTime | ||
static float | $totalTime | ||
static int | $numOfQueries |
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.
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 76
final
__construct()
Static class - cannot be instantiated.
at line 90
static Connection
connect(array $config = [], string $name = '0')
Creates a new Connection object and connects it to specified database.
at line 99
static bool
isConnected()
Returns true when connection was established.
at line 109
static Connection
getConnection(string $name = null)
Retrieve active connection.
at line 130
static Connection
setConnection(Connection $connection)
Sets connection.
at line 142
static
__callStatic(string $name, array $args)
Monostate for Dibi\Connection.
at line 156
static string|null
dump(string|Result $sql = null, bool $return = false)
Prints out a syntax highlighted version of the SQL command or Result.
at line 165
static DateTimeInterface
stripMicroseconds(DateTimeInterface $dt)
Strips microseconds part.
at line 37
static void
disconnect()
No description
at line 37
static Result
query(mixed $args)
No description
at line 37
static Result
nativeQuery(mixed $args)
No description
at line 37
static bool
test(mixed $args)
No description
at line 37
static DataSource
dataSource(mixed $args)
No description
at line 37
static Row|null
fetch(mixed $args)
No description
at line 37
static array
fetchAll(mixed $args)
No description
at line 37
static mixed
fetchSingle(mixed $args)
No description
at line 37
static array
fetchPairs(mixed $args)
No description
at line 37
static int
getAffectedRows()
No description
at line 37
static int
getInsertId(string $sequence = null)
No description
at line 37
static void
begin(string $savepoint = null)
No description
at line 37
static void
commit(string $savepoint = null)
No description
at line 37
static void
rollback(string $savepoint = null)
No description
at line 37
static Database
getDatabaseInfo()
No description
at line 37
static Fluent
command()
No description
at line 37
static Fluent
select(mixed $args)
No description
at line 37
static Fluent
update(string|string[] $table, array $args)
No description
at line 37
static Fluent
insert(string $table, array $args)
No description
at line 37
static Fluent
delete(string $table)
No description
at line 37
static HashMap
getSubstitutes()
No description
at line 37
static int
loadFile(string $file)
No description
Traits
Better OOP experience.