The OpenD Programming Language

Database

Members

Functions

escape
string escape(string sqlData)

Escapes data for inclusion into an sql string literal

escapeBinaryString
string escapeBinaryString(const(ubyte)[] sqlData)

Escapes binary data for inclusion into a sql string. Note that unlike escape, the returned string here SHOULD include the quotes.

query
ResultSet query(string sql, T t)

Just executes a query. It supports placeholders for parameters

queryImpl
ResultSet queryImpl(string sql, Variant[] args)

Actually implements the query for the database. The query() method below might be easier to use.

startTransaction
void startTransaction()

query to start a transaction, only here because sqlite is apparently different in syntax...

sysTimeToValue
string sysTimeToValue(SysTime )

turns a systime into a value understandable by the target database as a timestamp to be concated into a query. so it should be quoted and escaped etc as necessary

Meta