Class SqliteWeaselStoreBuilderExtensions
- Namespace
- Quartz
- Assembly
- Quartz.Weasel.SQLite.dll
Hands a SQLite job store's schema to Weasel.
public static class SqliteWeaselStoreBuilderExtensions
- Inheritance
-
SqliteWeaselStoreBuilderExtensions
- Inherited Members
Methods
UseWeaselForSqlite(IPersistentStoreBuilder, Action<SqliteWeaselOptions>?)
Lets Weasel create and migrate this store's tables: at startup, and from JasperFx's
db-apply, db-assert, db-patch and resources commands.
public static IPersistentStoreBuilder UseWeaselForSqlite(this IPersistentStoreBuilder store, Action<SqliteWeaselOptions>? configure = null)
Parameters
storeIPersistentStoreBuilderThe persistent store being configured.
configureAction<SqliteWeaselOptions>Adjusts SqliteWeaselOptions.
Returns
- IPersistentStoreBuilder
The same store builder, for chaining.
Remarks
The store must be on SQLite through Microsoft.Data.Sqlite — UseSqlite(...) on the same store,
which is the driver Weasel speaks — and must not also call ProvisionSchema(); both are checked
at startup. Weasel reaches the database through the store's own connections.
The tables are add-only: columns, indexes and foreign keys the application added to them are kept, with their rows, including when SQLite makes a change by rebuilding a table.
The dialect is in the name so that an application referencing more than one Quartz.Weasel package never has two candidates for one call.