app.models.base
Description
Classes
|
- class app.models.base.Base(*args, **kwargs)
- DoesNotExist
alias of
app.models.base.BaseDoesNotExist
- _coerce = True
- _meta = <peewee.Metadata object>
- classmethod _normalize_data(data, kwargs)
- property _pk
- _pk_expr()
- _populate_unsaved_relations(field_dict)
- _prune_fields(field_dict, only)
- _schema = <peewee.SchemaManager object>
- classmethod add_index(*fields, **kwargs)
- classmethod alias(alias=None)
- classmethod bind(database, bind_refs=True, bind_backrefs=True, _exclude=None)
- classmethod bind_ctx(database, bind_refs=True, bind_backrefs=True)
- classmethod bulk_create(model_list, batch_size=None)
- classmethod bulk_update(model_list, fields, batch_size=None)
- clone()
- coerce(_coerce=True)
- static copy(method)
- classmethod create(**query)
- classmethod create_table(safe=True, **options)
- classmethod delete()
- classmethod delete_by_id(pk)
- delete_instance(recursive=False, delete_nullable=False)
- dependencies(search_nullable=False)
- property dirty_fields
- classmethod drop_table(safe=True, drop_sequences=True, **options)
- classmethod filter(*dq_nodes, **filters)
- classmethod get(*query, **filters)
- classmethod get_by_id(pk)
- classmethod get_fields(exclude: Optional[list] = None, include: Optional[list] = None, sort_order: Optional[list] = None) set
- get_id()
- classmethod get_or_create(**kwargs)
- classmethod get_or_none(*query, **filters)
- id = <AutoField: Base.id>
- classmethod index(*fields, **kwargs)
- classmethod insert(_Model__data=None, **insert)
- classmethod insert_from(query, fields)
- classmethod insert_many(rows, fields=None)
- is_alias()
- is_dirty()
- classmethod noop()
- static raw(query: str)
- reload()
- classmethod replace(_Model__data=None, **insert)
- classmethod replace_many(rows, fields=None)
- abstract save(*args: list, **kwargs: dict) int
- classmethod select(*fields)
- classmethod set_by_id(key, value)
- classmethod table_exists()
- classmethod truncate_table(**options)
- unwrap()
- classmethod update(_Model__data=None, **update)
- classmethod validate_model()