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
파일 보기 프로젝트 열기: canton7/SimpleMigrations 1 사용 예제들

공개 메소드들

메소드 설명
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