Search Results for

    Show / Hide Table of Contents
    View Source

    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 Source

    SqliteDatabaseCreator(ILogger<SqliteDatabaseCreator>)

    Declaration
    public SqliteDatabaseCreator(ILogger<SqliteDatabaseCreator> logger)
    Parameters
    Type Name Description
    ILogger<SqliteDatabaseCreator> logger

    Properties

    View Source

    ProviderName

    Declaration
    public string ProviderName { get; }
    Property Value
    Type Description
    System.String

    Methods

    View Source

    Create(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

    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • SqliteDatabaseCreator(ILogger<SqliteDatabaseCreator>)
    • Properties
      • ProviderName
    • Methods
      • Create(String)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX