class DBSchema

Overview

This components holds

  1. Table and content from a 'WITH' clause (derived)
  2. Table and content from independent subqueries as derived table
  3. Table and content from initial load anything
  4. and of cource from running sql statemnets

Included Modules

Defined in:

pocketlib/dbschema.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new #

[View source]

Instance Method Detail

def add_csv_table(loadfilename, colnames, filename) : ResultSet #


[View source]
def add_cte_def(kind, tablename, comma_list) #

[View source]
def add_result_set(rs) #


[View source]
def add_value_table(kind, tablename, comma_list, rows) #


[View source]
def all_tables_as_result #


[View source]
def cte_and_derived_tables : Array(ResultSet) #

[View source]
def cte_and_derived_tables=(cte_and_derived_tables : Array(ResultSet)) #

[View source]
def find_table(tbl_name : String) : ResultSet | Nil #

[View source]
def find_table_by_name(name : TblName) #

[View source]
def find_table_obj(tbl_name : String) #

[View source]
def one_table_as_result(table_name : String) #


[View source]
def save_to_dir(dirpath : String) #

[View source]
def set_up_related_objs #

All 'Table' attributes are known to its name only Resolve 'Table' names to real Table instance at start time


[View source]
def tables : Array(Table) #

[View source]
def tables=(tables : Array(Table)) #

[View source]