Skip to main content
`Ctrl`+`K`

# Database

## Library

`Library`([path, directory, set_music_dir]) | A database of music containing songs and albums.

## Models

`LibModel`([db, fixed_values, flex_values]) | Shared concrete functionality for Items and Albums.
`Album`([db, fixed_values, flex_values]) | Provide access to information about albums stored in a library.
`Item`([db, fixed_values, flex_values]) | Represent a song or track.

## Transactions

`Migration`(db) | Define a one-time data migration that runs during database startup.
`Transaction`(db) | A context manager for safe, concurrent access to the database.

## Queries

`Query`() | An abstract class representing a query into the database.
`FieldQuery`(field_name, pattern[, fast]) | An abstract query that searches in a specific field for a pattern.
`AndQuery`([subqueries]) | A conjunction of a list of other queries.