BasicDatabase

A root type for interacting with databases. It's primary purpose is act as a factory for database connections. This type can be shared across threads.

Members

Functions

connection
auto connection()

return connection for default database

connection
auto connection(string uri)

return connection for database specified by URI

query
auto query(string sql, T args)

return executed statement object with specified input binds

query
auto query(string sql)

return executed statement

statement
auto statement(string sql)

return statement

statement
auto statement(string sql, X args)

return statement with specified input binds

Meta