C# Класс SimpleMigrations.DatabaseProvider.SqliteDatabaseProvider

Class which can read from / write to a version table in an SQLite database
SQLite does not support advisory locks, and its transaction model means that we cannot use a transaction on the VersionInfo table to guard against concurrent migrators. Therefore this database does not provide support for concurrent migrators.
Наследование: DatabaseProviderBaseWithAdvisoryLock
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
AcquireAdvisoryLock ( ) : void

No-op: SQLite does not support advisory locks

GetCreateVersionTableSql ( ) : string

Returns SQL to create the version table

GetCurrentVersionSql ( ) : string

Returns SQL to fetch the current version from the version table

GetSetVersionSql ( ) : string

Returns SQL to update the current version in the version table

ReleaseAdvisoryLock ( ) : void

No-op: SQLite does not support advisory locks

SqliteDatabaseProvider ( DbConnection connection ) : System.Data.Common

Initialises a new instance of the SqliteDatabaseProvider class

Описание методов

AcquireAdvisoryLock() публичный Метод

No-op: SQLite does not support advisory locks
public AcquireAdvisoryLock ( ) : void
Результат void

GetCreateVersionTableSql() публичный Метод

Returns SQL to create the version table
public GetCreateVersionTableSql ( ) : string
Результат string

GetCurrentVersionSql() публичный Метод

Returns SQL to fetch the current version from the version table
public GetCurrentVersionSql ( ) : string
Результат string

GetSetVersionSql() публичный Метод

Returns SQL to update the current version in the version table
public GetSetVersionSql ( ) : string
Результат string

ReleaseAdvisoryLock() публичный Метод

No-op: SQLite does not support advisory locks
public ReleaseAdvisoryLock ( ) : void
Результат void

SqliteDatabaseProvider() публичный Метод

Initialises a new instance of the SqliteDatabaseProvider class
public SqliteDatabaseProvider ( DbConnection connection ) : System.Data.Common
connection System.Data.Common.DbConnection Connection to use to run migrations. The caller is responsible for closing this.
Результат System.Data.Common