IConnection
interface IConnection
Dibi connection.
Methods
Connects to a database.
Disconnects from a database.
Returns true when connection was established.
Gets the number of affected rows by the last INSERT, UPDATE or DELETE query.
Retrieves the ID generated for an AUTO_INCREMENT column by the previous INSERT query.
Begins a transaction (if supported).
Commits statements in a transaction.
Rollback changes in a transaction.
Details
at line 194
void
connect()
Connects to a database.
at line 199
void
disconnect()
Disconnects from a database.
at line 204
bool
isConnected()
Returns true when connection was established.
at line 209
Driver
getDriver()
Returns the driver and connects to a database in lazy mode.
at line 215
Result
query(...$args)
Generates (translates) and executes SQL query.
at line 221
int
getAffectedRows()
Gets the number of affected rows by the last INSERT, UPDATE or DELETE query.
at line 227
int
getInsertId(string|null $sequence = null)
Retrieves the ID generated for an AUTO_INCREMENT column by the previous INSERT query.
at line 232
void
begin(string|null $savepoint = null)
Begins a transaction (if supported).
at line 237
void
commit(string|null $savepoint = null)
Commits statements in a transaction.
at line 242
void
rollback(string|null $savepoint = null)
Rollback changes in a transaction.