Module loglan_db.model_db.base_setting

This module contains a basic Setting Model

Classes

class BaseSetting (**kwargs)

Base Setting's DB Model

Describes a table structure for storing dictionary settings.

Show Examples

{'id': 1, 'last_word_id': 10141,
'date': datetime.datetime(2020, 10, 25, 5, 10, 20),
'db_release': '4.5.9', 'db_version': 2}

A simple constructor that allows initialization from kwargs.

Sets attributes on the constructed instance using the names and values in kwargs.

Only keys that are present as attributes of the instance's class are allowed. These could be, for example, any mapped columns or relationships.

Ancestors

  • sqlalchemy.orm.decl_api.Model
  • flask_sqlalchemy.model.Model
  • InitBase
  • DBBase

Subclasses

Instance variables

var date

Last modified date
dateime.datetime : nullable=True, unique=False

var db_release

Database release (for new application)
str : max_length=16, nullable=False, unique=True

var db_version

Database version (for old application)
int : nullable=False, unique=False

var id

Setting's internal ID number
int : primary_key=True

var last_word_id

ID number of the last word in DB
int : nullable=False, unique=False

Inherited members