C# Class ZocBuild.Database.ScriptRepositories.DvcsScriptRepositoryBase

Represents a script repository that stores build scripts in a distributed version control system.
The build script files in the distributed version repository must be organized with the same structure as required by FileSystemScriptRepository. The root location must contain subdirectories for each database schema, each named with the name of the schema. Within those directories should be a directory for each database object type: Function, Procedure, Type, View. Within those directories should be the build scripts, with file names ending with ".sql". The name of each file should be the same name as the database object it creates.
Inheritance: FileSystemScriptRepository
Mostrar archivo Open project: Zocdoc/ZocBuild.Database Class Usage Examples

Public Methods

Method Description
GetChangedScriptsAsync ( ) : Task>

Gets the build scripts for database objects that have changed since a specified repository state.

This method returns the scripts that have changed between the revision specified by SourceChangeset and the current HEAD.

Protected Methods

Method Description
DvcsScriptRepositoryBase ( DirectoryInfoBase scriptDirectory, string serverName, string databaseName, IFileSystem fileSystem, IParser sqlParser, ILogger logger, bool ignoreUnsupportedSubdirectories ) : System

Instantiates a dvcs script repository for the given database at the specified directory location.

DvcsScriptRepositoryBase ( string scriptDirectoryPath, string serverName, string databaseName, IFileSystem fileSystem, IParser sqlParser, ILogger logger, bool ignoreUnsupportedSubdirectories ) : System

Instantiates a dvcs script repository for the given database at the specified directory location.

GetDiffedFilesAsync ( ) : Task>

Gets the files that have changed between the revision specified by SourceChangeset and the current HEAD.

Method Details

DvcsScriptRepositoryBase() protected method

Instantiates a dvcs script repository for the given database at the specified directory location.
protected DvcsScriptRepositoryBase ( DirectoryInfoBase scriptDirectory, string serverName, string databaseName, IFileSystem fileSystem, IParser sqlParser, ILogger logger, bool ignoreUnsupportedSubdirectories ) : System
scriptDirectory DirectoryInfoBase The directory where build scripts are located.
serverName string The name of the database server.
databaseName string The name of the database.
fileSystem IFileSystem An object that provides access to the file system.
sqlParser IParser The sql script parser for reading the SQL file contents.
logger ILogger A Logger
ignoreUnsupportedSubdirectories bool A flag indicating whether to ignore subdirectories that don't conform to the expected naming convention.
return System

DvcsScriptRepositoryBase() protected method

Instantiates a dvcs script repository for the given database at the specified directory location.
protected DvcsScriptRepositoryBase ( string scriptDirectoryPath, string serverName, string databaseName, IFileSystem fileSystem, IParser sqlParser, ILogger logger, bool ignoreUnsupportedSubdirectories ) : System
scriptDirectoryPath string The path to the directory where build scripts are located.
serverName string The name of the database server.
databaseName string The name of the database.
fileSystem IFileSystem An object that provides access to the file system.
sqlParser IParser The sql script parser for reading the SQL file contents.
logger ILogger A Logger
ignoreUnsupportedSubdirectories bool A flag indicating whether to ignore subdirectories that don't conform to the expected naming convention.
return System

GetChangedScriptsAsync() public method

Gets the build scripts for database objects that have changed since a specified repository state.
This method returns the scripts that have changed between the revision specified by SourceChangeset and the current HEAD.
public GetChangedScriptsAsync ( ) : Task>
return Task>

GetDiffedFilesAsync() protected abstract method

Gets the files that have changed between the revision specified by SourceChangeset and the current HEAD.
protected abstract GetDiffedFilesAsync ( ) : Task>
return Task>