API Reference

This section is a reference for classes and functions of dbbase.

Base classes and functions

DB(config[, model_class, checkfirst, echo])

This class defines a central location for accepting database configuration information, creating connections and sessions.

Model(**kwargs)

This class replicates some of the design features available when using flask_sqlalchemy.

Maintenance

create_database(config, dbname[, superuser])

Creates a new database.

drop_database(config, dbname)

Drops a database

Column Types

WriteOnlyColumn(*args, **kwargs)

This class creates a subclassed column that identifies it as write only.

Utilities

db_config(base[, config_vars])

This function combines config variables with a base string.

xlate(key[, camel_case])

This function translates a name to camel case or back.