예제 #1
0
            public override bool IsTableInDatabase(Type type)
            {
                var name = type.Name;

                var connection = GetReadConnectionFactory()();
                var command    = connection.CreateCommand("");

                command.CommandText = $"SELECT name FROM sqlite_master WHERE type='table' AND name='{name}';";

                return(command.ExecuteScalar <string>() != null);
            }
예제 #2
0
 public SQLiteConnection GetConnection()
 {
     return(GetReadConnectionFactory()());
 }
예제 #3
0
 public override ICheckpointPersister GetCheckpointPersister()
 {
     return(new CheckpointPersister <CheckpointInfo>(GetReadConnectionFactory()()));
 }
예제 #4
0
 public override IStorageResetter GetStorageResetter()
 {
     return(new StorageResetter(GetReadConnectionFactory()()));
 }