# src/allographer/query_builder/models/mariadb/mariadb_types

Theme:

- Index

Search:
Group by:

created by `let rdb = dbOpen(MySQL, "localhost", 3306)`created by `rdb.select("columnName")` or `rdb.table("tableName")`

# Imports

../../log, ../../libs/mariadb/mariadb_rdb

# Types

    Connection = object
      conn*: PMySQL
      isBusy*: bool
      createdAt*: int64

    ConnectionInfo = object
      database*: string
      user*: string
      password*: string
      host*: string
      port*: int

    Connections = ref object
      conns*: seq[Connection]
      timeout*: int
      waiters*: Deque[Future[void]]
      columnTypeCache*: Table[string, seq[seq[string]]]

    MariaDB = object

    MariadbConnections = ref object
      log*: LogSetting
      pools*: Connections
      info*: ConnectionInfo
      isInTransaction*: bool
      transactionConn*: int

    MariadbQuery = ref object
      log*: LogSetting
      pools*: Connections
      info*: ConnectionInfo
      query*: JsonNode
      queryString*: string
      placeHolder*: JsonNode
      isInTransaction*: bool
      transactionConn*: int

    RawMariadbQuery = ref object
      log*: LogSetting
      pools*: Connections
      info*: ConnectionInfo
      query*: JsonNode
      queryString*: string
      placeHolder*: JsonNode
      isInTransaction*: bool
      transactionConn*: int

# Procs

    proc `$`(self: MariadbConnections | MariadbQuery | RawMariadbQuery): string

    proc isConnected(self: MariadbConnections | MariadbQuery | RawMariadbQuery): bool