PulseSharp.Sqlite
The SQLite store.
Generated from the XML documentation of
PulseSharp.Sqlite.
PulseSharpSqliteExtensions
csharp
public static class PulseSharpSqliteExtensionsAdds the SQLite store to PulseSharp.
UseSqlite(PulseSharpBuilder, string)
Keeps events, cursors and jobs in a SQLite database, so they survive a restart.
| Parameter | Description |
|---|---|
pulse | The PulseSharp builder. |
database | A file name such as app.db, or a Microsoft.Data.Sqlite connection string such as Data Source=app.db. |
Returns: The builder.
Example
csharp
services.AddPulseSharp(pulse => pulse.UseSqlite("pos.db"));SqliteStore
csharp
public sealed class SqliteStoreKeeps PulseSharp's events, cursors and jobs in a SQLite database. Tables are created and upgraded on first use; their names start with pulsesharp_, so they can share a database with your own tables.
SqliteStore(string)
Creates the store.
| Parameter | Description |
|---|---|
database | A file name such as app.db, or a Microsoft.Data.Sqlite connection string such as Data Source=app.db. |
Throws ArgumentException when database is empty.