Represents a connection to a database server.
Represents a connection to a database server.
Don't create these directly, use the [code]get_connection()[/code] method in [Database] to get one.
Creates a [PreparedStatement] for use with this database connection.
Connect to the database. The backend will automatically call this.
Ensures that a table that contains the database's verison exists for compatibility checks.
Escapes the given [String] using the database backend's excape method.
Use it on user input for sanitization.
Note that [QueryBuilder] does this where necessary automatically.
Also note that when using [PreparedStatement]s this is not needed.
Returns the owner [Database].
Returns a new [QueryBuilder] that is properly set up for this connection.
Returns a new [TableBuilder] that is properly set up for this connection.
Returns the current table version. This can be used to determine database compatibility, or for example whether to run migrations or not during startup.
Run a query. Use the resulting[QueryResult] object to read data from the database.
Run a query.
Sets the current table version.