Adding Application Specific Attributes
FIXME: Describe the basic usage how the db works here.
-
beacon.register_inverted_index(name, min=None, max=None, split=None, ignore=None)
- Registers a new inverted index with the database. An inverted index
maps arbitrary terms to objects and allows you to query based on one
or more terms. If the inverted index already exists with the given
parameters, no action is performed. See kaa.db for details.
-
beacon.register_file_type_attrs(type_name, indexes=[], **attrs)
- Registers one or more object attributes and/or multi-column
indexes for the given type name. This function modifies the
database as needed to accommodate new indexes and attributes,
either by creating the object’s tables (in the case of a new
object type) or by altering the object’s tables to add new columns
or indexes.
-
beacon.register_track_type_attrs(type_name, indexes=[], **attrs)
- Register new attrs and types for tracks. See L{register_file_type_attrs}
for details. The only difference between this two functions is that this
adds track_ to the type name.
-
class beacon.QExpr(operator, operand)
- Flexible query expressions for use with Database.query()
-
beacon.ATTR_SIMPLE
-
beacon.ATTR_SEARCHABLE
-
beacon.ATTR_IGNORE_CASE
-
beacon.ATTR_INDEXED
-
beacon.ATTR_INDEXED_IGNORE_CASE
-
beacon.ATTR_INVERTED_INDEX