class Database

Overview

The Database class contains various operations for interacting with the SQLite database.

Defined in:

lib/db.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(path : String) #

Creates a new Database instance.


[View source]

Instance Method Detail

def execOnDb(query : String, args : Array) #

Execute a query on the database.


[View source]
def queryAllDb(query : String, args : NamedTuple) #

Sends a query to the database that returns all matching rows.


[View source]
def queryDb(query : String) #

Sends a query to the database.


[View source]