class Miner::Database
- Miner::Database
- Reference
- Object
Defined in:
miner/database.crConstructors
-
.new(config : Config | Hash(String, Int32 | String))
Create the database instance
Instance Method Summary
-
#execute(query : Query) : Boolean
Execute a query against the database
-
#fetch(query : Query) : Collection | Nil
Execute a query against the database and return the result set
- #fields_for_table(table : Table) : Hash(String, Field)
- #primary_key_for_table(table : Table) : String
- #relationships_for_table(table : Table) : Hash(String, Relationship)
Constructor Detail
Create the database instance
Instance Method Detail
Execute a query against the database and return the result set