Class SqliteDatabaseCreator
Implements IDatabaseCreator for SQLite.
Inheritance
System.Object
Namespace: Umbraco.Cms.Persistence.Sqlite.Services
Assembly: Umbraco.Cms.Persistence.Sqlite.dll
Syntax
public class SqliteDatabaseCreator : IDatabaseCreator
Constructors
View SourceSqliteDatabaseCreator(ILogger<SqliteDatabaseCreator>)
Declaration
public SqliteDatabaseCreator(ILogger<SqliteDatabaseCreator> logger)
Parameters
Type | Name | Description |
---|---|---|
ILogger<SqliteDatabaseCreator> | logger |
Properties
View SourceProviderName
Declaration
public string ProviderName { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
View SourceCreate(String)
Creates a SQLite database file.
Declaration
public void Create(string connectionString)
Parameters
Type | Name | Description |
---|---|---|
System.String | connectionString |
Remarks
With journal_mode = wal we have snapshot isolation.
Concurrent read/write can take occur, committing a write transaction will have no impact on open read transactions as they see only committed data from the point in time that they began reading.
A write transaction still requires exclusive access to database files so concurrent writes are not possible.
Read more Isolation in SQLite
Read more Write-Ahead Logging