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).

__init__(db: type[Db], schema: str | None, name: str, model: type[Model] | None = None) None

Methods

__init__(db, schema, name[, model])

parse(db, input)

Attributes

escaped

full_escaped

Include the db default schema if none is given.

model

Django model associated to the table, if known.

temp

unsafe

db

Type of the database (used for escaping).

schema

Schema of the object.

name

Name of the object.

db: type[Db]

Type of the database (used for escaping).

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.