class

Miner::Database

Inherits Reference < Object

Constructors

new(config : Config | Hash(String, Int32 | String))

Create the database instance

Source

Instance methods

execute(query : Query) : Boolean

Execute a query against the database

Source
fetch(query : Query) : Collection | Nil

Execute a query against the database and return the result set

Source
fields_for_table(table : Table) : Hash(String, Field)
Source
primary_key_for_table(table : Table) : String
Source
relationships_for_table(table : Table) : Hash(String, Relationship)
Source