# src/allographer/query_builder/models/mysql/mysql_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/mysql/mysql_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

    MySQL = object

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

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

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

# Procs

    proc `$`(self: MysqlConnections | MysqlQuery | RawMysqlQuery): string

    proc isConnected(self: MysqlConnections | MysqlQuery | RawMysqlQuery): bool