class Database
- Database
- Reference
- Object
Overview
The Database
class contains various operations for interacting with the SQLite database.
Defined in:
lib/db.crConstructors
-
.new(path : String)
Creates a new
Database
instance.
Instance Method Summary
-
#execOnDb(query : String, args : Array)
Execute a query on the database.
-
#queryAllDb(query : String, args : NamedTuple)
Sends a query to the database that returns all matching rows.
-
#queryDb(query : String)
Sends a query to the database.
Constructor Detail
Instance Method Detail
def queryAllDb(query : String, args : NamedTuple)
#
Sends a query to the database that returns all matching rows.