C# Class Mite.Core.AnsiDatabaseRepository

Inheritance: IDatabaseRepository
Exibir arquivo Open project: soitgoes/Mite

Protected Properties

Property Type Description
connection IDbConnection
delimiter string
filePath string
tableName string

Public Methods

Method Description
CheckConnection ( ) : bool
Create ( ) : MigrationTracker
CreateDatabaseIfNotExists ( ) : void

Create a database if it doesn't exists. Throw exception if the database already exists. Used to create a temporary database for verification

DatabaseExists ( ) : bool
Dispose ( ) : void
DropDatabase ( ) : void
DropMigrationTable ( ) : void
ExecuteDown ( Migration migration ) : MigrationTracker
ExecuteUp ( Migration migration ) : MigrationTracker
GenerateSqlScript ( bool includeData ) : string
GetConnWithoutDatabaseSpecified ( ) : IDbConnection
Init ( ) : MigrationTracker
MigrationTableExists ( ) : bool
RecordMigration ( Migration migration ) : MigrationTracker

Protected Methods

Method Description
GetMigrationCmd ( Migration migration ) : IDbCommand

Method Details

CheckConnection() public method

public CheckConnection ( ) : bool
return bool

Create() public method

public Create ( ) : MigrationTracker
return MigrationTracker

CreateDatabaseIfNotExists() public abstract method

Create a database if it doesn't exists. Throw exception if the database already exists. Used to create a temporary database for verification
public abstract CreateDatabaseIfNotExists ( ) : void
return void

DatabaseExists() public method

public DatabaseExists ( ) : bool
return bool

Dispose() public method

public Dispose ( ) : void
return void

DropDatabase() public method

public DropDatabase ( ) : void
return void

DropMigrationTable() public method

public DropMigrationTable ( ) : void
return void

ExecuteDown() public method

public ExecuteDown ( Migration migration ) : MigrationTracker
migration Migration
return MigrationTracker

ExecuteUp() public method

public ExecuteUp ( Migration migration ) : MigrationTracker
migration Migration
return MigrationTracker

GenerateSqlScript() public abstract method

public abstract GenerateSqlScript ( bool includeData ) : string
includeData bool
return string

GetConnWithoutDatabaseSpecified() public abstract method

public abstract GetConnWithoutDatabaseSpecified ( ) : IDbConnection
return IDbConnection

GetMigrationCmd() protected abstract method

protected abstract GetMigrationCmd ( Migration migration ) : IDbCommand
migration Migration
return IDbCommand

Init() public abstract method

public abstract Init ( ) : MigrationTracker
return MigrationTracker

MigrationTableExists() public abstract method

public abstract MigrationTableExists ( ) : bool
return bool

RecordMigration() public method

public RecordMigration ( Migration migration ) : MigrationTracker
migration Migration
return MigrationTracker

Property Details

connection protected_oe property

protected IDbConnection connection
return IDbConnection

delimiter protected_oe property

protected string delimiter
return string

filePath protected_oe property

protected string filePath
return string

tableName protected_oe property

protected string tableName
return string