Connection.this
- this(string host, string user, string pwd, string db, ushort port, SvrCapFlags capFlags)
- this(MySQLSocketType socketType, string host, string user, string pwd, string db, ushort port, SvrCapFlags capFlags)
- this(OpenSocketCallbackPhobos openSocket, string host, string user, string pwd, string db, ushort port, SvrCapFlags capFlags)
- this(OpenSocketCallbackVibeD openSocket, string host, string user, string pwd, string db, ushort port, SvrCapFlags capFlags)
- this(string cs, SvrCapFlags capFlags)
- this(MySQLSocketType socketType, string cs, SvrCapFlags capFlags)
- this(OpenSocketCallbackPhobos openSocket, string cs, SvrCapFlags capFlags)
- this(OpenSocketCallbackVibeD openSocket, string cs, SvrCapFlags capFlags)
mysql connection Connection
constructorsenumsfunctionspropertiesstatic functionsvariables
Construct opened connection.
Throws mysql.exceptions.MYX upon failure to connect.
If you are using Vibe.d, consider using mysql.pool.MySQLPool instead of creating a new Connection directly. That will provide certain benefits, such as reusing old connections and automatic cleanup (no need to close the connection when done).