MySqlConnection::__construct()

void __construct(PDO|Closure $pdo, string $database = '', string $tablePrefix = '', array $config = array()) Create a new database connection instance. Parameters PDO|Closure $pdo string $database string $tablePrefix array $config Return Value void

MySqlConnection::withTablePrefix()

Grammar withTablePrefix(Grammar $grammar) Set the table prefix and return the grammar. Parameters Grammar $grammar Return Value Grammar

MySqlConnection::useDefaultSchemaGrammar()

void useDefaultSchemaGrammar() Set the schema grammar to the default implementation. Return Value void

MySqlConnection::useDefaultQueryGrammar()

void useDefaultQueryGrammar() Set the query grammar to the default implementation. Return Value void

MySqlConnection::useDefaultPostProcessor()

void useDefaultPostProcessor() Set the query post processor to the default implementation. Return Value void

MySqlConnection::update()

int update(string $query, array $bindings = array()) Run an update statement against the database. Parameters string $query array $bindings Return Value int

MySqlConnection::unprepared()

bool unprepared(string $query) Run a raw, unprepared query against the PDO connection. Parameters string $query Return Value bool

MySqlConnection::transactionLevel()

int transactionLevel() Get the number of active transactions. Return Value int

MySqlConnection::transaction()

mixed transaction(Closure $callback, int $attempts = 1) Execute a Closure within a transaction. Parameters Closure $callback int $attempts Return Value mixed Exceptions Throwable

MySqlConnection::table()

Builder table(string $table) Begin a fluent query against a database table. Parameters string $table Return Value Builder