Skip to content

Latest commit

 

History

History
46 lines (34 loc) · 1.29 KB

File metadata and controls

46 lines (34 loc) · 1.29 KB

TCSystem.MetaDataDB

NuGet

SQLite persistence for TCSystem.MetaData images, locations, tags, people, faces, and processing state. Database operations acquire pooled SQLite instances internally to serialize access safely.

Installation

dotnet add package TCSystem.MetaDataDB

Features

  • Read-only, write-only, and read/write interfaces
  • SQLite schema creation and version conversion
  • Metadata, file, location, tag, person, and face queries
  • Thread-safe internal connection-instance pooling
  • Add/change/remove notifications

Lifecycle

Create database interfaces through TCSystem.MetaDataDB.Factory and always release them with the matching Destroy overload:

IDB2 db = null;
try
{
    db = Factory.CreateReadWrite(databasePath);
    Image image = db.GetMetaData(fileName);
}
finally
{
    Factory.Destroy(ref db);
}

CreateReadWrite creates a database when the path does not exist. CreateRead opens an existing database in read-only mode.

Repository Development

Repository-wide prerequisites, target frameworks, dependencies, build, test, coverage, fixture, and API-documentation instructions are maintained in the main README.