Connection

Undocumented in source.
struct Connection (
SocketType
ConnectionOptions Options = ConnectionOptions.Default
) {}

Members

Aliases

OnDisconnectCallback
alias OnDisconnectCallback = void delegate(ConnectionStatus status)
Undocumented in source.
OnStatusCallback
alias OnStatusCallback = void delegate(ConnectionStatus status, const(char)[] message)
Undocumented in source.

Functions

begin
void begin()
Undocumented in source. Be warned that the author may not have intended to support it.
close
void close(PreparedStatement stmt)
Undocumented in source. Be warned that the author may not have intended to support it.
commit
void commit()
Undocumented in source. Be warned that the author may not have intended to support it.
connect
void connect(string connectionString)
Undocumented in source. Be warned that the author may not have intended to support it.
connect
void connect(ConnectionSettings settings)
Undocumented in source. Be warned that the author may not have intended to support it.
connect
void connect(const(char)[] host, ushort port, const(char)[] user, const(char)[] pwd, const(char)[] db, CapabilityFlags caps)
Undocumented in source. Be warned that the author may not have intended to support it.
disconnect
void disconnect()
Undocumented in source. Be warned that the author may not have intended to support it.
execute
void execute(const(char)[] sql, Args args)
Undocumented in source. Be warned that the author may not have intended to support it.
execute
void execute(PreparedStatement stmt, Args args)
Undocumented in source. Be warned that the author may not have intended to support it.
get
const(char)[] get(const(char)[] variable)
Undocumented in source. Be warned that the author may not have intended to support it.
ping
void ping()
Undocumented in source. Be warned that the author may not have intended to support it.
prepare
auto prepare(const(char)[] sql)
Undocumented in source. Be warned that the author may not have intended to support it.
refresh
void refresh()
Undocumented in source. Be warned that the author may not have intended to support it.
reset
void reset()
Undocumented in source. Be warned that the author may not have intended to support it.
reuse
void reuse()
Undocumented in source. Be warned that the author may not have intended to support it.
rollback
void rollback()
Undocumented in source. Be warned that the author may not have intended to support it.
schema
const(char)[] schema()
Undocumented in source. Be warned that the author may not have intended to support it.
set
void set(const(char)[] variable, T value)
Undocumented in source. Be warned that the author may not have intended to support it.
settings
ConnectionSettings settings()
Undocumented in source. Be warned that the author may not have intended to support it.
statistics
const(char)[] statistics()
Undocumented in source. Be warned that the author may not have intended to support it.
use
void use(const(char)[] db)
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

affected
ulong affected [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
changed
ulong changed [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
connected
bool connected [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
error
size_t error [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
inTransaction
bool inTransaction [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
insertID
ulong insertID [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
matched
ulong matched [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
onDisconnect
OnDisconnectCallback onDisconnect [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
onDisconnect
OnDisconnectCallback onDisconnect [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
onStatus
OnStatusCallback onStatus [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
onStatus
OnStatusCallback onStatus [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
status
const(char)[] status [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
trace
bool trace [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
trace
bool trace [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
warnings
size_t warnings [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Meta