public void Open(string path) { if (this.Connection == null) { this.Connection = MieSQLiteIO.Open(path); } }
/// <summary> /// データベースを作成する。 /// </summary> /// <param name="databasePath">データベースのパス</param> /// <param name="schemaPath">システムデータベースのスキーマのパス</param> /// <param name="isReplace">上書きの有無</param> public void CreateSystemDB(string databasePath, string schemaPath, bool isReplace) { if (File.Exists(databasePath) && !isReplace) { throw new Exception($"Database '{databasePath}' already exists."); } else { var mieSQLiteIO = new MieSQLiteIO(); mieSQLiteIO.CreateDB(databasePath); mieSQLiteIO.CreateSystemTableByScheme(databasePath, schemaPath); } }
public void CompactDB(string databasePath) { MieSQLiteIO mieSQLiteIO = new MieSQLiteIO(); mieSQLiteIO.CompactDB(databasePath); }
public void Open(string voiceDatabasePath) { this.connection = MieSQLiteIO.Open(voiceDatabasePath); }