Menu

Service factory

Andrew Hamlin

Rather than encapsulate all the SQLite commands inside the cmdlets, I am going to introduce a service factory implementation and provide the SQLite Factory with the [Beta] release.

Each service factory may require configuration items.
Each service factory will provide a consistent service interface for the clients'.

Proposed service interface:

CreateLibrary()

Create a new empty library

UpdateLibrary()

Perform a comparison of the audio file entries in the library with the files on disk. Changed files update the audio file entry in the library. Missing files remove the audio file entry from the library.

GetFiles()

Returns all audio file entries in the library.

AddFile(AudioFile audioFile)

Add a new audio file entry to the library. Existing audio file entries cause error, must use UpdateLibrary() call instead.


Related

Wiki: Beta

MongoDB Logo MongoDB