Object Relation Mapper as an abstraction ontop of a local database connection.

May be used to populate a metadata database and query objects.

Hierarchy

  • MetadataORM

Constructors

Properties

Methods

Constructors

Properties

#conn: Database

Methods

  • Returns void

  • Query for a list of {folders, playlists, tracks} given a playlist ID. If no ID is provided the root list is queried.

    Note that when tracks are returned there will be no folders or playslists. But the API here is simpler to assume there could be.

    Tracks are returned in the order they are placed on the playlist.

    Parameters

    • Optional playlistId: number

    Returns {
        folders: Playlist[];
        playlists: Playlist[];
        trackEntries: PlaylistEntry<WithFKs>[];
    }

  • Insert a entity object into the database.

    Parameters

    Returns void

Generated using TypeDoc