initialize()
initialize() : mixed
Initializes the database connection/settings.
Interface ConnectionInterface
getConnection(string|null $alias = null) : mixed
Returns the actual connection object. If both a 'read' and 'write' connection has been specified, you can pass either term in to get that connection. If you pass either alias in and only a single connection is present, it must return the sole connection.
string|null | $alias |
query(string $sql, mixed ...$binds) : mixed
Orchestrates a query against the database. Queries must use Database\Statement objects to store the query and build it.
This method works with the cache.
Should automatically handle different connections for read/write queries if needed.
string | $sql | |
mixed | $binds variadic |
Loading…