EgretDoc
Back to Home
Location:system/aio.mysql

Module

Module documentation.

moduleaio.mysql

Classes

Classes and inheritance.

classaio.mysql::QueryResult
@brief`QueryResult` type.
@details`QueryResult` encapsulates state and operations exported by the system module. It commonly stores runtime handles, protocol state, buffers, configuration, or collection data. Its methods define the primary behavior for the type. If the type owns external resources, prefer `dispose` or `close` for deterministic release.
class QueryResult {
    /*
    @brief `is_result_set` field.
classaio.mysql::MultiResult
@brief`MultiResult` type.
@details`MultiResult` encapsulates state and operations exported by the system module. It commonly stores runtime handles, protocol state, buffers, configuration, or collection data. Its methods define the primary behavior for the type. If the type owns external resources, prefer `dispose` or `close` for deterministic release.
class MultiResult {
    /*
    @brief `results` field.
classaio.mysql::Conn
@brief`Conn` type.
@details`Conn` encapsulates state and operations exported by the system module. It commonly stores runtime handles, protocol state, buffers, configuration, or collection data. Its methods define the primary behavior for the type. If the type owns external resources, prefer `dispose` or `close` for deterministic release.
class Conn {
    /*
    @brief `fd` field.
classaio.mysql::Pool
@brief`Pool` type.
@details`Pool` encapsulates state and operations exported by the system module. It commonly stores runtime handles, protocol state, buffers, configuration, or collection data. Its methods define the primary behavior for the type. If the type owns external resources, prefer `dispose` or `close` for deterministic release.
class Pool {
    /*
    @brief `cfg` field.

Functions

Free functions and class methods.

functionaio.mysql::QueryResult.init
Signaturefunc init(self: aio.mysql.QueryResult) -> Void
    func init(self: aio.mysql.QueryResult) -> Void {
        self.is_result_set = false;
        self.ok = new protocol.mysql.OkPacket();
@briefInitializes a `QueryResult` instance.
@detailsEstablishes the initial field state for `QueryResult` so other methods can be called safely. Constructor logic should keep fields consistent and avoid leaking partially initialized resources.
@param
  • selfThe current instance whose fields, handles, buffers, or external resources are read or modified by this method.
@returnVoid
functionaio.mysql::QueryResult.error_code
Signaturefunc error_code(self: aio.mysql.QueryResult) -> Int
    func error_code(self: aio.mysql.QueryResult) -> Int {
        return self.err.code;
    }
@briefProvides the system library operation `QueryResult.error_code`.
@detailsExecutes the `error_code` system-library API. The documented parameters define the accepted inputs, ownership requirements, range limits, and timeout behavior for this call. Callers must check returned `ErrCode` values or boolean status values before using the result.
@param
  • selfThe current instance whose fields, handles, buffers, or external resources are read or modified by this method.
@returnReturns the operation result as `Int`.
functionaio.mysql::QueryResult.sql_state
Signaturefunc sql_state(self: aio.mysql.QueryResult) -> String
    func sql_state(self: aio.mysql.QueryResult) -> String {
        return self.err.sql_state;
    }
@briefProvides the system library operation `QueryResult.sql_state`.
@detailsExecutes the `sql_state` system-library API. The documented parameters define the accepted inputs, ownership requirements, range limits, and timeout behavior for this call. Callers must check returned `ErrCode` values or boolean status values before using the result.
@param
  • selfThe current instance whose fields, handles, buffers, or external resources are read or modified by this method.
@returnReturns the operation result as `String`.
functionaio.mysql::QueryResult.error_message
Signaturefunc error_message(self: aio.mysql.QueryResult) -> String
    func error_message(self: aio.mysql.QueryResult) -> String {
        return self.err.message;
    }
@briefProvides the system library operation `QueryResult.error_message`.
@detailsExecutes the `error_message` system-library API. The documented parameters define the accepted inputs, ownership requirements, range limits, and timeout behavior for this call. Callers must check returned `ErrCode` values or boolean status values before using the result.
@param
  • selfThe current instance whose fields, handles, buffers, or external resources are read or modified by this method.
@returnReturns the operation result as `String`.
functionaio.mysql::QueryResult.deinit
Signaturefunc deinit(self: aio.mysql.QueryResult) -> Void
    func deinit(self: aio.mysql.QueryResult) -> Void {
    }
}
@briefReleases fallback resources at the end of the `QueryResult` lifetime.
@detailsThis destructor hook is called by object lifetime management to clean up underlying resources that were not released explicitly. Normal application code should prefer `dispose`, `close`, or the module-specific close function to release resources at a deterministic time.
@param
  • selfThe current instance whose fields, handles, buffers, or external resources are read or modified by this method.
@returnVoid
functionaio.mysql::MultiResult.init
Signaturefunc init(self: aio.mysql.MultiResult) -> Void
    func init(self: aio.mysql.MultiResult) -> Void {
        self.results = new collections.Vector<aio.mysql.QueryResult>();
    }
@briefInitializes a `MultiResult` instance.
@detailsEstablishes the initial field state for `MultiResult` so other methods can be called safely. Constructor logic should keep fields consistent and avoid leaking partially initialized resources.
@param
  • selfThe current instance whose fields, handles, buffers, or external resources are read or modified by this method.
@returnVoid
functionaio.mysql::MultiResult.len
Signaturefunc len(self: aio.mysql.MultiResult) -> Int
    func len(self: aio.mysql.MultiResult) -> Int {
        return self.results.len();
    }
@briefReturns the element count or byte length with `MultiResult.len`.
@detailsExecutes the `len` system-library API. The documented parameters define the accepted inputs, ownership requirements, range limits, and timeout behavior for this call. Callers must check returned `ErrCode` values or boolean status values before using the result.
@param
  • selfThe current instance whose fields, handles, buffers, or external resources are read or modified by this method.
@returnReturns the operation result as `Int`.
functionaio.mysql::MultiResult.get
Signaturefunc get(self: aio.mysql.MultiResult, idx: Int) -> aio.mysql.QueryResult
    func get(self: aio.mysql.MultiResult, idx: Int) -> aio.mysql.QueryResult {
        return self.results.get_unchecked(idx);
    }
@briefReads the element for `MultiResult.get`.
@detailsExecutes the `get` system-library API. The documented parameters define the accepted inputs, ownership requirements, range limits, and timeout behavior for this call. Callers must check returned `ErrCode` values or boolean status values before using the result.
@param
  • selfThe current instance whose fields, handles, buffers, or external resources are read or modified by this method.
  • idxZero-based index.
@returnReturns the operation result as `aio.mysql.QueryResult`.
functionaio.mysql::MultiResult.deinit
Signaturefunc deinit(self: aio.mysql.MultiResult) -> Void
    func deinit(self: aio.mysql.MultiResult) -> Void {
    }
}
@briefReleases fallback resources at the end of the `MultiResult` lifetime.
@detailsThis destructor hook is called by object lifetime management to clean up underlying resources that were not released explicitly. Normal application code should prefer `dispose`, `close`, or the module-specific close function to release resources at a deterministic time.
@param
  • selfThe current instance whose fields, handles, buffers, or external resources are read or modified by this method.
@returnVoid
functionaio.mysql::Conn.init
Signaturefunc init(self: aio.mysql.Conn, fd: Int, timeout_ms: Int = 15000) -> Void
    func init(self: aio.mysql.Conn, fd: Int, timeout_ms: Int = 15000) -> Void {
        self.fd = fd;
        self.tls_h = 0;
@briefInitializes a `Conn` instance.
@detailsEstablishes the initial field state for `Conn` so other methods can be called safely. Constructor logic should keep fields consistent and avoid leaking partially initialized resources.
@param
  • selfThe current instance whose fields, handles, buffers, or external resources are read or modified by this method.
  • fdOperating-system file descriptor or socket descriptor.
  • timeout_msTimeout in milliseconds; negative values usually select blocking or default timeout behavior.
@returnVoid
functionaio.mysql::Conn.clear_error
Signaturefunc clear_error(self: aio.mysql.Conn) -> Void
    func clear_error(self: aio.mysql.Conn) -> Void {
        self.last_error = new protocol.mysql.ErrPacket();
    }
@briefProvides the system library operation `Conn.clear_error`.
@detailsExecutes the `clear_error` system-library API. The documented parameters define the accepted inputs, ownership requirements, range limits, and timeout behavior for this call. Callers must check returned `ErrCode` values or boolean status values before using the result.
@param
  • selfThe current instance whose fields, handles, buffers, or external resources are read or modified by this method.
@returnVoid
functionaio.mysql::Conn.set_error
Signaturefunc set_error(self: aio.mysql.Conn, err: protocol.mysql.ErrPacket) -> Void
    func set_error(self: aio.mysql.Conn, err: protocol.mysql.ErrPacket) -> Void {
        self.last_error = err;
    }
@briefSets state or configuration with `Conn.set_error`.
@detailsExecutes the `set_error` system-library API. The documented parameters define the accepted inputs, ownership requirements, range limits, and timeout behavior for this call. Callers must check returned `ErrCode` values or boolean status values before using the result.
@param
  • selfThe current instance whose fields, handles, buffers, or external resources are read or modified by this method.
  • errError code or error object.
@returnVoid
functionaio.mysql::Conn.last_error_code
Signaturefunc last_error_code(self: aio.mysql.Conn) -> Int
    func last_error_code(self: aio.mysql.Conn) -> Int {
        return self.last_error.code;
    }
@briefProvides the system library operation `Conn.last_error_code`.
@detailsExecutes the `last_error_code` system-library API. The documented parameters define the accepted inputs, ownership requirements, range limits, and timeout behavior for this call. Callers must check returned `ErrCode` values or boolean status values before using the result.
@param
  • selfThe current instance whose fields, handles, buffers, or external resources are read or modified by this method.
@returnReturns the operation result as `Int`.
functionaio.mysql::Conn.last_sql_state
Signaturefunc last_sql_state(self: aio.mysql.Conn) -> String
    func last_sql_state(self: aio.mysql.Conn) -> String {
        return self.last_error.sql_state;
    }
@briefProvides the system library operation `Conn.last_sql_state`.
@detailsExecutes the `last_sql_state` system-library API. The documented parameters define the accepted inputs, ownership requirements, range limits, and timeout behavior for this call. Callers must check returned `ErrCode` values or boolean status values before using the result.
@param
  • selfThe current instance whose fields, handles, buffers, or external resources are read or modified by this method.
@returnReturns the operation result as `String`.
functionaio.mysql::Conn.last_error_message
Signaturefunc last_error_message(self: aio.mysql.Conn) -> String
    func last_error_message(self: aio.mysql.Conn) -> String {
        return self.last_error.message;
    }
@briefProvides the system library operation `Conn.last_error_message`.
@detailsExecutes the `last_error_message` system-library API. The documented parameters define the accepted inputs, ownership requirements, range limits, and timeout behavior for this call. Callers must check returned `ErrCode` values or boolean status values before using the result.
@param
  • selfThe current instance whose fields, handles, buffers, or external resources are read or modified by this method.
@returnReturns the operation result as `String`.
functionaio.mysql::Conn.last_error_text
Signaturefunc last_error_text(self: aio.mysql.Conn) -> String
    func last_error_text(self: aio.mysql.Conn) -> String {
        if self.last_error.code == 0 && std.len(self.last_error.message) == 0 {
            return "";
@briefProvides the system library operation `Conn.last_error_text`.
@detailsExecutes the `last_error_text` system-library API. The documented parameters define the accepted inputs, ownership requirements, range limits, and timeout behavior for this call. Callers must check returned `ErrCode` values or boolean status values before using the result.
@param
  • selfThe current instance whose fields, handles, buffers, or external resources are read or modified by this method.
@returnReturns the operation result as `String`.
functionaio.mysql::Conn.close
Signaturefunc close(self: aio.mysql.Conn) -> Void
    func close(self: aio.mysql.Conn) -> Void {
        if self.closed {
            return;
@briefCloses resources and makes later operations unavailable with `Conn.close`.
@detailsExecutes the `close` system-library API. The documented parameters define the accepted inputs, ownership requirements, range limits, and timeout behavior for this call. Callers must check returned `ErrCode` values or boolean status values before using the result.
@param
  • selfThe current instance whose fields, handles, buffers, or external resources are read or modified by this method.
@returnVoid
functionaio.mysql::Conn.local_infile_allowed
Signaturefunc local_infile_allowed(self: aio.mysql.Conn, filename: String) -> Bool
    func local_infile_allowed(self: aio.mysql.Conn, filename: String) -> Bool {
        if !self.allow_local_infile || std.len(self.local_infile_root) == 0 {
            return false;
@briefProvides the system library operation `Conn.local_infile_allowed`.
@detailsExecutes the `local_infile_allowed` system-library API. The documented parameters define the accepted inputs, ownership requirements, range limits, and timeout behavior for this call. Callers must check returned `ErrCode` values or boolean status values before using the result.
@param
  • selfThe current instance whose fields, handles, buffers, or external resources are read or modified by this method.
  • filenameFilesystem path or file name used by the operation.
@returnReturns a boolean result; true means the condition holds or the operation succeeded.
functionaio.mysql::Conn.result_status_flags
Signaturefunc result_status_flags(self: aio.mysql.Conn, qr: aio.mysql.QueryResult) -> Int
    func result_status_flags(self: aio.mysql.Conn, qr: aio.mysql.QueryResult) -> Int {
        if qr.is_result_set {
            return qr.result_set.status_flags;
@briefProvides the system library operation `Conn.result_status_flags`.
@detailsExecutes the `result_status_flags` system-library API. The documented parameters define the accepted inputs, ownership requirements, range limits, and timeout behavior for this call. Callers must check returned `ErrCode` values or boolean status values before using the result.
@param
  • selfThe current instance whose fields, handles, buffers, or external resources are read or modified by this method.
  • qrQuery result object decoded from the database response.
@returnReturns the operation result as `Int`.
functionaio.mysql::Conn.deinit
Signaturefunc deinit(self: aio.mysql.Conn) -> Void
    func deinit(self: aio.mysql.Conn) -> Void {
    }
}
@briefReleases fallback resources at the end of the `Conn` lifetime.
@detailsThis destructor hook is called by object lifetime management to clean up underlying resources that were not released explicitly. Normal application code should prefer `dispose`, `close`, or the module-specific close function to release resources at a deterministic time.
@param
  • selfThe current instance whose fields, handles, buffers, or external resources are read or modified by this method.
@returnVoid
functionaio.mysql::Pool.init
Signaturefunc init(self: aio.mysql.Pool, cfg: protocol.mysql.Config, max_size: Int = 8) -> Void
    func init(self: aio.mysql.Pool, cfg: protocol.mysql.Config, max_size: Int = 8) -> Void {
        self.cfg = cfg;
        self.max_size = max_size;
@briefInitializes a `Pool` instance.
@detailsEstablishes the initial field state for `Pool` so other methods can be called safely. Constructor logic should keep fields consistent and avoid leaking partially initialized resources.
@param
  • selfThe current instance whose fields, handles, buffers, or external resources are read or modified by this method.
  • cfgConfiguration value or pointer used to initialize or control the operation.
  • max_sizeMaximum allowed count or byte size.
@returnVoid
functionaio.mysql::Pool.configure
Signaturefunc configure(self: aio.mysql.Pool, acquire_timeout_ms: Int = 15000, max_idle_ms: Int = 300000, max_lifetime_ms: Int = 1800000, validation_query: String = "SELECT 1", health_check_on_get: Bool = false, leak_threshold_ms: Int = 60000) -> Void
    func configure(self: aio.mysql.Pool, acquire_timeout_ms: Int = 15000, max_idle_ms: Int = 300000, max_lifetime_ms: Int = 1800000, validation_query: String = "SELECT 1", health_check_on_get: Bool = false, leak_threshold_ms: Int = 60000) -> Void {
        self.acquire_timeout_ms = acquire_timeout_ms;
        self.max_idle_ms = max_idle_ms;
@briefProvides the system library operation `Pool.configure`.
@detailsExecutes the `configure` system-library API. The documented parameters define the accepted inputs, ownership requirements, range limits, and timeout behavior for this call. Callers must check returned `ErrCode` values or boolean status values before using the result.
@param
  • selfThe current instance whose fields, handles, buffers, or external resources are read or modified by this method.
  • acquire_timeout_msTime interval or timeout value in milliseconds.
  • max_idle_msMaximum allowed count or byte size.
  • max_lifetime_msMaximum allowed count or byte size.
  • validation_queryValue supplied by the caller for storage, comparison, or encoding.
  • health_check_on_getWhether a health check is performed when borrowing a connection.
  • leak_threshold_msTime interval or timeout value in milliseconds.
@returnVoid
functionaio.mysql::Pool.should_discard
Signaturefunc should_discard(self: aio.mysql.Pool, conn: aio.mysql.Conn, now_ms: Int) -> Bool
    func should_discard(self: aio.mysql.Pool, conn: aio.mysql.Conn, now_ms: Int) -> Bool {
        if conn.closed || self.max_lifetime_ms > 0 && conn.created_at_ms > 0 && now_ms - conn.created_at_ms >= self.max_lifetime_ms || self.max_idle_ms > 0 && conn.last_used_at_ms > 0 && now_ms - conn.last_used_at_ms >= self.max_idle_ms {
            return true;
@briefProvides the system library operation `Pool.should_discard`.
@detailsExecutes the `should_discard` system-library API. The documented parameters define the accepted inputs, ownership requirements, range limits, and timeout behavior for this call. Callers must check returned `ErrCode` values or boolean status values before using the result.
@param
  • selfThe current instance whose fields, handles, buffers, or external resources are read or modified by this method.
  • connConnection object or native connection handle used for network I/O.
  • now_msTime interval or timeout value in milliseconds.
@returnReturns a boolean result; true means the condition holds or the operation succeeded.
functionaio.mysql::Pool.mark_leak_if_needed
Signaturefunc mark_leak_if_needed(self: aio.mysql.Pool, now_ms: Int) -> Void
    func mark_leak_if_needed(self: aio.mysql.Pool, now_ms: Int) -> Void {
        if self.leak_threshold_ms <= 0 || self.oldest_borrowed_at_ms <= 0 {
            return;
@briefProvides the system library operation `Pool.mark_leak_if_needed`.
@detailsExecutes the `mark_leak_if_needed` system-library API. The documented parameters define the accepted inputs, ownership requirements, range limits, and timeout behavior for this call. Callers must check returned `ErrCode` values or boolean status values before using the result.
@param
  • selfThe current instance whose fields, handles, buffers, or external resources are read or modified by this method.
  • now_msTime interval or timeout value in milliseconds.
@returnVoid
functionaio.mysql::Pool.active_count
Signaturefunc active_count(self: aio.mysql.Pool) -> Int
    func active_count(self: aio.mysql.Pool) -> Int {
        return self.in_use;
    }
@briefProvides the system library operation `Pool.active_count`.
@detailsExecutes the `active_count` system-library API. The documented parameters define the accepted inputs, ownership requirements, range limits, and timeout behavior for this call. Callers must check returned `ErrCode` values or boolean status values before using the result.
@param
  • selfThe current instance whose fields, handles, buffers, or external resources are read or modified by this method.
@returnReturns the operation result as `Int`.
functionaio.mysql::Pool.idle_count
Signaturefunc idle_count(self: aio.mysql.Pool) -> Int
    func idle_count(self: aio.mysql.Pool) -> Int {
        return self.idle.len();
    }
@briefProvides the system library operation `Pool.idle_count`.
@detailsExecutes the `idle_count` system-library API. The documented parameters define the accepted inputs, ownership requirements, range limits, and timeout behavior for this call. Callers must check returned `ErrCode` values or boolean status values before using the result.
@param
  • selfThe current instance whose fields, handles, buffers, or external resources are read or modified by this method.
@returnReturns the operation result as `Int`.
functionaio.mysql::Pool.suspected_leaks
Signaturefunc suspected_leaks(self: aio.mysql.Pool) -> Int
    func suspected_leaks(self: aio.mysql.Pool) -> Int {
        return self.leak_reports;
    }
@briefProvides the system library operation `Pool.suspected_leaks`.
@detailsExecutes the `suspected_leaks` system-library API. The documented parameters define the accepted inputs, ownership requirements, range limits, and timeout behavior for this call. Callers must check returned `ErrCode` values or boolean status values before using the result.
@param
  • selfThe current instance whose fields, handles, buffers, or external resources are read or modified by this method.
@returnReturns the operation result as `Int`.
functionaio.mysql::Pool.close
Signaturefunc close(self: aio.mysql.Pool) -> Void
    func close(self: aio.mysql.Pool) -> Void {
        self.closed = true;
        loop (; self.idle.len() > 0; ) {
@briefCloses resources and makes later operations unavailable with `Pool.close`.
@detailsExecutes the `close` system-library API. The documented parameters define the accepted inputs, ownership requirements, range limits, and timeout behavior for this call. Callers must check returned `ErrCode` values or boolean status values before using the result.
@param
  • selfThe current instance whose fields, handles, buffers, or external resources are read or modified by this method.
@returnVoid
functionaio.mysql::Pool.deinit
Signaturefunc deinit(self: aio.mysql.Pool) -> Void
    func deinit(self: aio.mysql.Pool) -> Void {
    }
}
@briefReleases fallback resources at the end of the `Pool` lifetime.
@detailsThis destructor hook is called by object lifetime management to clean up underlying resources that were not released explicitly. Normal application code should prefer `dispose`, `close`, or the module-specific close function to release resources at a deterministic time.
@param
  • selfThe current instance whose fields, handles, buffers, or external resources are read or modified by this method.
@returnVoid

Variables

Class fields (var).

varaio.mysql::QueryResult.is_result_set
TypeBool
@brief`is_result_set` field.
@detailsHolds the `is_result_set` value for each `QueryResult` instance. The field type is `Bool`, and constructors and methods keep it synchronized with the object's runtime state.
    var is_result_set: Bool;
    /*
    @brief `ok` field.
varaio.mysql::QueryResult.ok
Typeprotocol.mysql.OkPacket
@brief`ok` field.
@detailsIndicates whether the operation or state is valid. The field type is `protocol.mysql.OkPacket`, and it is maintained by the constructors and methods of `QueryResult`.
    var ok: protocol.mysql.OkPacket;
    /*
    @brief `err` field.
varaio.mysql::QueryResult.err
Typeprotocol.mysql.ErrPacket
@brief`err` field.
@detailsHolds the `err` value for each `QueryResult` instance. The field type is `protocol.mysql.ErrPacket`, and constructors and methods keep it synchronized with the object's runtime state.
    var err: protocol.mysql.ErrPacket;
    /*
    @brief `result_set` field.
varaio.mysql::QueryResult.result_set
Typeprotocol.mysql.ResultSet
@brief`result_set` field.
@detailsHolds the `result_set` value for each `QueryResult` instance. The field type is `protocol.mysql.ResultSet`, and constructors and methods keep it synchronized with the object's runtime state.
    var result_set: protocol.mysql.ResultSet;

    /*
varaio.mysql::MultiResult.results
Typecollections.Vector<aio.mysql.QueryResult>
@brief`results` field.
@detailsHolds the `results` value for each `MultiResult` instance. The field type is `collections.Vector<aio.mysql.QueryResult>`, and constructors and methods keep it synchronized with the object's runtime state.
    var results: collections.Vector<aio.mysql.QueryResult>;

    /*
varaio.mysql::Conn.fd
TypeInt
@brief`fd` field.
@detailsStores the underlying file descriptor or socket descriptor. The field type is `Int`, and it is maintained by the constructors and methods of `Conn`.
    var fd: Int;
    /*
    @brief `tls_h` field.
varaio.mysql::Conn.tls_h
TypeInt
@brief`tls_h` field.
@detailsHolds the `tls_h` value for each `Conn` instance. The field type is `Int`, and constructors and methods keep it synchronized with the object's runtime state.
    var tls_h: Int;
    /*
    @brief `tls_enabled` field.
varaio.mysql::Conn.tls_enabled
TypeBool
@brief`tls_enabled` field.
@detailsHolds the `tls_enabled` value for each `Conn` instance. The field type is `Bool`, and constructors and methods keep it synchronized with the object's runtime state.
    var tls_enabled: Bool;
    /*
    @brief `timeout_ms` field.
varaio.mysql::Conn.timeout_ms
TypeInt
@brief`timeout_ms` field.
@detailsStores the default timeout in milliseconds. The field type is `Int`, and it is maintained by the constructors and methods of `Conn`.
    var timeout_ms: Int;
    /*
    @brief `seq` field.
varaio.mysql::Conn.seq
TypeInt
@brief`seq` field.
@detailsHolds the `seq` value for each `Conn` instance. The field type is `Int`, and constructors and methods keep it synchronized with the object's runtime state.
    var seq: Int;
    /*
    @brief `caps` field.
varaio.mysql::Conn.caps
TypeInt
@brief`caps` field.
@detailsHolds the `caps` value for each `Conn` instance. The field type is `Int`, and constructors and methods keep it synchronized with the object's runtime state.
    var caps: Int;
    /*
    @brief `server_caps` field.
varaio.mysql::Conn.server_caps
TypeInt
@brief`server_caps` field.
@detailsHolds the `server_caps` value for each `Conn` instance. The field type is `Int`, and constructors and methods keep it synchronized with the object's runtime state.
    var server_caps: Int;
    /*
    @brief `status_flags` field.
varaio.mysql::Conn.status_flags
TypeInt
@brief`status_flags` field.
@detailsHolds the `status_flags` value for each `Conn` instance. The field type is `Int`, and constructors and methods keep it synchronized with the object's runtime state.
    var status_flags: Int;
    /*
    @brief `warnings` field.
varaio.mysql::Conn.warnings
TypeInt
@brief`warnings` field.
@detailsHolds the `warnings` value for each `Conn` instance. The field type is `Int`, and constructors and methods keep it synchronized with the object's runtime state.
    var warnings: Int;
    /*
    @brief `busy` field.
varaio.mysql::Conn.busy
TypeBool
@brief`busy` field.
@detailsHolds the `busy` value for each `Conn` instance. The field type is `Bool`, and constructors and methods keep it synchronized with the object's runtime state.
    var busy: Bool;
    /*
    @brief `closed` field.
varaio.mysql::Conn.closed
TypeBool
@brief`closed` field.
@detailsIndicates whether the resource has already been closed. The field type is `Bool`, and it is maintained by the constructors and methods of `Conn`.
    var closed: Bool;
    /*
    @brief `allow_local_infile` field.
varaio.mysql::Conn.allow_local_infile
TypeBool
@brief`allow_local_infile` field.
@detailsHolds the `allow_local_infile` value for each `Conn` instance. The field type is `Bool`, and constructors and methods keep it synchronized with the object's runtime state.
    var allow_local_infile: Bool;
    /*
    @brief `local_infile_root` field.
varaio.mysql::Conn.local_infile_root
TypeString
@brief`local_infile_root` field.
@detailsHolds the `local_infile_root` value for each `Conn` instance. The field type is `String`, and constructors and methods keep it synchronized with the object's runtime state.
    var local_infile_root: String;
    /*
    @brief `max_local_infile_bytes` field.
varaio.mysql::Conn.max_local_infile_bytes
TypeInt
@brief`max_local_infile_bytes` field.
@detailsHolds the `max_local_infile_bytes` value for each `Conn` instance. The field type is `Int`, and constructors and methods keep it synchronized with the object's runtime state.
    var max_local_infile_bytes: Int;
    /*
    @brief `compression_enabled` field.
varaio.mysql::Conn.compression_enabled
TypeBool
@brief`compression_enabled` field.
@detailsHolds the `compression_enabled` value for each `Conn` instance. The field type is `Bool`, and constructors and methods keep it synchronized with the object's runtime state.
    var compression_enabled: Bool;
    /*
    @brief `compression_requested` field.
varaio.mysql::Conn.compression_requested
TypeBool
@brief`compression_requested` field.
@detailsHolds the `compression_requested` value for each `Conn` instance. The field type is `Bool`, and constructors and methods keep it synchronized with the object's runtime state.
    var compression_requested: Bool;
    /*
    @brief `compression_min_bytes` field.
varaio.mysql::Conn.compression_min_bytes
TypeInt
@brief`compression_min_bytes` field.
@detailsHolds the `compression_min_bytes` value for each `Conn` instance. The field type is `Int`, and constructors and methods keep it synchronized with the object's runtime state.
    var compression_min_bytes: Int;
    /*
    @brief `max_uncompressed_packet_bytes` field.
varaio.mysql::Conn.max_uncompressed_packet_bytes
TypeInt
@brief`max_uncompressed_packet_bytes` field.
@detailsHolds the `max_uncompressed_packet_bytes` value for each `Conn` instance. The field type is `Int`, and constructors and methods keep it synchronized with the object's runtime state.
    var max_uncompressed_packet_bytes: Int;
    /*
    @brief `compressed_seq` field.
varaio.mysql::Conn.compressed_seq
TypeInt
@brief`compressed_seq` field.
@detailsHolds the `compressed_seq` value for each `Conn` instance. The field type is `Int`, and constructors and methods keep it synchronized with the object's runtime state.
    var compressed_seq: Int;
    /*
    @brief `compressed_read_buffer` field.
varaio.mysql::Conn.compressed_read_buffer
TypeString
@brief`compressed_read_buffer` field.
@detailsHolds the `compressed_read_buffer` value for each `Conn` instance. The field type is `String`, and constructors and methods keep it synchronized with the object's runtime state.
    var compressed_read_buffer: String;
    /*
    @brief `last_error` field.
varaio.mysql::Conn.last_error
Typeprotocol.mysql.ErrPacket
@brief`last_error` field.
@detailsHolds the `last_error` value for each `Conn` instance. The field type is `protocol.mysql.ErrPacket`, and constructors and methods keep it synchronized with the object's runtime state.
    var last_error: protocol.mysql.ErrPacket;
    /*
    @brief `created_at_ms` field.
varaio.mysql::Conn.created_at_ms
TypeInt
@brief`created_at_ms` field.
@detailsHolds the `created_at_ms` value for each `Conn` instance. The field type is `Int`, and constructors and methods keep it synchronized with the object's runtime state.
    var created_at_ms: Int;
    /*
    @brief `last_used_at_ms` field.
varaio.mysql::Conn.last_used_at_ms
TypeInt
@brief`last_used_at_ms` field.
@detailsHolds the `last_used_at_ms` value for each `Conn` instance. The field type is `Int`, and constructors and methods keep it synchronized with the object's runtime state.
    var last_used_at_ms: Int;
    /*
    @brief `borrowed_at_ms` field.
varaio.mysql::Conn.borrowed_at_ms
TypeInt
@brief`borrowed_at_ms` field.
@detailsHolds the `borrowed_at_ms` value for each `Conn` instance. The field type is `Int`, and constructors and methods keep it synchronized with the object's runtime state.
    var borrowed_at_ms: Int;
    /*
    @brief `use_count` field.
varaio.mysql::Conn.use_count
TypeInt
@brief`use_count` field.
@detailsHolds the `use_count` value for each `Conn` instance. The field type is `Int`, and constructors and methods keep it synchronized with the object's runtime state.
    var use_count: Int;

    /*
varaio.mysql::Pool.cfg
Typeprotocol.mysql.Config
@brief`cfg` field.
@detailsHolds the `cfg` value for each `Pool` instance. The field type is `protocol.mysql.Config`, and constructors and methods keep it synchronized with the object's runtime state.
    var cfg: protocol.mysql.Config;
    /*
    @brief `max_size` field.
varaio.mysql::Pool.max_size
TypeInt
@brief`max_size` field.
@detailsHolds the `max_size` value for each `Pool` instance. The field type is `Int`, and constructors and methods keep it synchronized with the object's runtime state.
    var max_size: Int;
    /*
    @brief `idle` field.
varaio.mysql::Pool.idle
Typecollections.Vector<aio.mysql.Conn>
@brief`idle` field.
@detailsHolds the `idle` value for each `Pool` instance. The field type is `collections.Vector<aio.mysql.Conn>`, and constructors and methods keep it synchronized with the object's runtime state.
    var idle: collections.Vector<aio.mysql.Conn>;
    /*
    @brief `total` field.
varaio.mysql::Pool.total
TypeInt
@brief`total` field.
@detailsHolds the `total` value for each `Pool` instance. The field type is `Int`, and constructors and methods keep it synchronized with the object's runtime state.
    var total: Int;
    /*
    @brief `in_use` field.
varaio.mysql::Pool.in_use
TypeInt
@brief`in_use` field.
@detailsHolds the `in_use` value for each `Pool` instance. The field type is `Int`, and constructors and methods keep it synchronized with the object's runtime state.
    var in_use: Int;
    /*
    @brief `waiters` field.
varaio.mysql::Pool.waiters
TypeInt
@brief`waiters` field.
@detailsHolds the `waiters` value for each `Pool` instance. The field type is `Int`, and constructors and methods keep it synchronized with the object's runtime state.
    var waiters: Int;
    /*
    @brief `closed` field.
varaio.mysql::Pool.closed
TypeBool
@brief`closed` field.
@detailsIndicates whether the resource has already been closed. The field type is `Bool`, and it is maintained by the constructors and methods of `Pool`.
    var closed: Bool;
    /*
    @brief `allow_local_infile` field.
varaio.mysql::Pool.acquire_timeout_ms
TypeInt
@brief`acquire_timeout_ms` field.
@detailsHolds the `acquire_timeout_ms` value for each `Pool` instance. The field type is `Int`, and constructors and methods keep it synchronized with the object's runtime state.
    var acquire_timeout_ms: Int;
    /*
    @brief `max_idle_ms` field.
varaio.mysql::Pool.max_idle_ms
TypeInt
@brief`max_idle_ms` field.
@detailsHolds the `max_idle_ms` value for each `Pool` instance. The field type is `Int`, and constructors and methods keep it synchronized with the object's runtime state.
    var max_idle_ms: Int;
    /*
    @brief `max_lifetime_ms` field.
varaio.mysql::Pool.max_lifetime_ms
TypeInt
@brief`max_lifetime_ms` field.
@detailsHolds the `max_lifetime_ms` value for each `Pool` instance. The field type is `Int`, and constructors and methods keep it synchronized with the object's runtime state.
    var max_lifetime_ms: Int;
    /*
    @brief `validation_query` field.
varaio.mysql::Pool.validation_query
TypeString
@brief`validation_query` field.
@detailsHolds the `validation_query` value for each `Pool` instance. The field type is `String`, and constructors and methods keep it synchronized with the object's runtime state.
    var validation_query: String;
    /*
    @brief `health_check_on_get` field.
varaio.mysql::Pool.health_check_on_get
TypeBool
@brief`health_check_on_get` field.
@detailsHolds the `health_check_on_get` value for each `Pool` instance. The field type is `Bool`, and constructors and methods keep it synchronized with the object's runtime state.
    var health_check_on_get: Bool;
    /*
    @brief `leak_threshold_ms` field.
varaio.mysql::Pool.leak_threshold_ms
TypeInt
@brief`leak_threshold_ms` field.
@detailsHolds the `leak_threshold_ms` value for each `Pool` instance. The field type is `Int`, and constructors and methods keep it synchronized with the object's runtime state.
    var leak_threshold_ms: Int;
    /*
    @brief `leak_reports` field.
varaio.mysql::Pool.leak_reports
TypeInt
@brief`leak_reports` field.
@detailsHolds the `leak_reports` value for each `Pool` instance. The field type is `Int`, and constructors and methods keep it synchronized with the object's runtime state.
    var leak_reports: Int;
    /*
    @brief `oldest_borrowed_at_ms` field.
varaio.mysql::Pool.oldest_borrowed_at_ms
TypeInt
@brief`oldest_borrowed_at_ms` field.
@detailsHolds the `oldest_borrowed_at_ms` value for each `Pool` instance. The field type is `Int`, and constructors and methods keep it synchronized with the object's runtime state.
    var oldest_borrowed_at_ms: Int;

    /*