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); }
public SQLiteConnection GetConnection() { return(GetReadConnectionFactory()()); }
public override ICheckpointPersister GetCheckpointPersister() { return(new CheckpointPersister <CheckpointInfo>(GetReadConnectionFactory()())); }
public override IStorageResetter GetStorageResetter() { return(new StorageResetter(GetReadConnectionFactory()())); }