SqlAdapter

Wrapper around a sql adapter.

Constructors

this
this(string connectionString)

Creates a new sql adapter.

Members

Functions

execute
ulong execute(string query, DbParam[string] params, string connectionString)

Executes an sql statement.

executeRaw
ulong executeRaw(string query, DbParam[] params, string connectionString)

Executes a raw sql statement.

exists
bool exists(string query, DbParam[string] params, string connectionString)

Validates whether a row is selected from the query or not.

existsRaw
bool existsRaw(string query, DbParam[] params, string connectionString)

Validates whether a row is selected from the raw query or not.

readMany
TModel[] readMany(string query, DbParam[string] params, string connectionString)

Executes a multi sql read.

readManyRaw
TModel[] readManyRaw(string query, DbParam[] params, string connectionString)

Executes a raw multi sql read.

readSingle
TModel readSingle(string query, DbParam[string] params, string connectionString)

Executes a single sql read.

readSingleRaw
TModel readSingleRaw(string query, DbParam[] params, string connectionString)

Executes a single raw sql read.

scalar
T scalar(string query, DbParam[string] params, string connectionString)

Executes a scalar sql statement.

scalarImpl
Variant scalarImpl(string query, DbParam[string] params, string connectionString)

Executes a scalar sql statement.

scalarInsert
T scalarInsert(string query, DbParam[string] params, string connectionString)

Executes a scalar insert sql statement.

scalarInsertImpl
Variant scalarInsertImpl(string query, DbParam[string] params, string connectionString)

Executes a scalar insert sql statement.

scalarInsertRaw
T scalarInsertRaw(string query, DbParam[] params, string connectionString)

Executes a raw scalar insert sql statement.

scalarInsertRawImpl
Variant scalarInsertRawImpl(string query, DbParam[] params, string connectionString)

Executes a raw scalar insert sql statement.

scalarRaw
T scalarRaw(string query, DbParam[] params, string connectionString)

Executes a raw scalar sql statement.

scalarRawImpl
Variant scalarRawImpl(string query, DbParam[] params, string connectionString)

Executes a raw scalar sql statement.

Properties

connectionString
string connectionString [@property getter]

Gets the connection string.

Meta