zut.db.DbObj
- class zut.db.DbObj(db: type[Db], schema: str | None, name: str, model: type[Model] | None = None)
Bases:
object
Identify a database object (table, view, procedure, etc). Mostly for internal usage. For external applications, advise is to use tuple (schema, table).
Methods
__init__
(db, schema, name[, model])parse
(db, input)Attributes
escaped
Include the db default schema if none is given.
Django model associated to the table, if known.
temp
unsafe
Type of the database (used for escaping).
Schema of the object.
Name of the object.
- property full_escaped
Include the db default schema if none is given.
- model: type[Model] | None = None
Django model associated to the table, if known.
- name: str
Name of the object.
- schema: str | None
Schema of the object.