class Miner::Database

Defined in:

miner/database.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(config : Config | Hash(String, Int32 | String)) #

Create the database instance


[View source]

Instance Method Detail

def execute(query : Query) : Boolean #

Execute a query against the database


[View source]
def fetch(query : Query) : Collection | Nil #

Execute a query against the database and return the result set


[View source]
def fields_for_table(table : Table) : Hash(String, Field) #

[View source]
def primary_key_for_table(table : Table) : String #

[View source]
def relationships_for_table(table : Table) : Hash(String, Relationship) #

[View source]