/// <summary> /// Use SQLite for backend append-only store. /// </summary> /// <param name="cfg"></param> /// <param name="connectionString"></param> /// <param name="createTable"></param> /// <returns></returns> public static EventStoreConfiguration WithSQLiteEventStore(this EventStoreConfiguration cfg, string connectionString, bool createTable) { if (createTable) SQLiteAppendOnlyStore.CreateTableIfNotExists(connectionString); IAppendOnlyStore aStore = new SQLiteAppendOnlyStore(connectionString); Xyperico.Agres.EventStore.EventStoreConfigurationExtensions.SetAppendOnlyStore(cfg, aStore); return cfg; }
public static void Setup(IObjectContainer container) { SQLiteAppendOnlyStore.CreateTableIfNotExists(SqlConnectionString); container.AddComponent <IUserNameValidator, FilebasedUserNameValidator>(); Chimera.Authentication.Core.ApplicationStarter.Initialize(); }
protected override void SetUp() { base.SetUp(); try { SQLiteAppendOnlyStore.DropTable(SqlConnectionString); } catch { } SQLiteAppendOnlyStore.CreateTable(SqlConnectionString); }
static IAppendOnlyStore CreateSQLiteStore() { SQLiteAppendOnlyStore.DropTableIfExists(SQLiteConnectionString); SQLiteAppendOnlyStore.CreateTable(SQLiteConnectionString); return(new SQLiteAppendOnlyStore(SQLiteConnectionString, false)); }