sublime_music.adapters.filesystem.sqlite_extensions module

class sublime_music.adapters.filesystem.sqlite_extensions.CacheConstantsField(null=False, index=False, unique=False, column_name=None, default=None, primary_key=False, constraints=None, sequence=None, collation=None, unindexed=False, choices=None, help_text=None, verbose_name=None, index_type=None, db_column=None, _hidden=False)[source]

Bases: peewee.TextField

db_value(value)[source]
Parameters

value (sublime_music.adapters.adapter_base.CachingAdapter.CachedDataKey) –

Return type

str

python_value(value)[source]
Parameters

value (str) –

Return type

sublime_music.adapters.adapter_base.CachingAdapter.CachedDataKey

class sublime_music.adapters.filesystem.sqlite_extensions.DurationField(null=False, index=False, unique=False, column_name=None, default=None, primary_key=False, constraints=None, sequence=None, collation=None, unindexed=False, choices=None, help_text=None, verbose_name=None, index_type=None, db_column=None, _hidden=False)[source]

Bases: peewee.DoubleField

db_value(value)[source]
Parameters

value (datetime.timedelta) –

Return type

Optional[float]

python_value(value)[source]
Parameters

value (Optional[float]) –

Return type

Optional[datetime.timedelta]

class sublime_music.adapters.filesystem.sqlite_extensions.SortedManyToManyField(model, backref=None, through_model=None, on_delete=None, on_update=None, _is_backref=False)[source]

Bases: peewee.ManyToManyField

accessor_class

alias of sublime_music.adapters.filesystem.sqlite_extensions.SortedManyToManyFieldAccessor

class sublime_music.adapters.filesystem.sqlite_extensions.SortedManyToManyFieldAccessor(model, field, name)[source]

Bases: peewee.ManyToManyFieldAccessor

class sublime_music.adapters.filesystem.sqlite_extensions.SortedManyToManyQuery(instance, accessor, rel, *args, **kwargs)[source]

Bases: peewee.ManyToManyQuery

add(value, clear_existing=False)[source]
Parameters
class sublime_music.adapters.filesystem.sqlite_extensions.TzDateTimeField(null=False, index=False, unique=False, column_name=None, default=None, primary_key=False, constraints=None, sequence=None, collation=None, unindexed=False, choices=None, help_text=None, verbose_name=None, index_type=None, db_column=None, _hidden=False)[source]

Bases: peewee.TextField

db_value(value)[source]
Parameters

value (Optional[datetime.datetime]) –

Return type

Optional[str]

python_value(value)[source]
Parameters

value (Optional[str]) –

Return type

Optional[datetime.datetime]