class

Xerp::Store::Database

Inherits Reference < Object

Constructors

new(path : String)
Source

Instance methods

migrate!

Ensures the database exists and is migrated.

Source
path
Source
schema_version

Returns the current schema version.

Source
transaction(db : DB::Database, &) : Nil

Runs a block within a transaction.

Source
with_connection

Opens a connection with optimal settings and yields it.

Source
with_migrated_connection

Opens a connection, runs migrations, and yields it.

Source