snowmobile.core.cfg.sql

[sql] (snowmobile-ext.toml)

Module Contents

Classes

SQL

[sql] (snowmobile-ext.toml)

class snowmobile.core.cfg.sql.SQL

Bases: snowmobile.core.cfg.base.Base

[sql] (snowmobile-ext.toml)

generic_anchors :Dict
kw_exceptions :Dict
named_objects :List
info_schema_exceptions :Dict[str, str]
desc_is_simple :bool
pr_over_ge :bool
info_schema_loc(self, obj: str, stem: bool = False)str

Returns information schema table for object if other than making plural.

i.e.:
  • ‘tables’ -> ‘tables’

  • ‘table’ –> ‘tables’

  • ‘schemas’ -> ‘schemata’

  • ‘schema’ –> ‘schemata’

objects_within(self, first_line: str)

Searches the first line of sql for matches to named objects.