struct

Ralph::Schema::DatabaseSchema

Inherits Struct / Value / Object

Represents the complete database schema

Constructors

new(tables : Hash(String, DatabaseTable) = {} of String => DatabaseTable)
Source

Instance methods

each_table

Iterate over all tables

Source
has_table?(name : String) : Bool

Check if schema has a table

Source
table(name : String) : DatabaseTable | Nil

Get a table by name

Source
table_names

Get all table names

Source
tables
Source
tables=(tables : Hash(String, DatabaseTable))
Source