C# Class Blacker.MangaScraper.Library.SQLite.SchemaManager

Datei anzeigen Open project: blacker-cz/MangaScraper

Public Methods

Method Description
CheckSchema ( SQLiteConnection connection ) : void

This method checks whether the database uses latest schema and if it doesn't it will automatically initiate schema upgrade.

Private Methods

Method Description
BackupDatabase ( SQLiteConnection connection, string backupName ) : bool

Create a backup of database

GetSchemaVersion ( SQLiteConnection connection ) : long

Get schema version

InitDatabase ( SQLiteConnection connection ) : void

Method Details

CheckSchema() public method

This method checks whether the database uses latest schema and if it doesn't it will automatically initiate schema upgrade.
public CheckSchema ( SQLiteConnection connection ) : void
connection System.Data.SQLite.SQLiteConnection Connection to the SQLite database
return void