C# Class ZocBuild.Database.ScriptRepositories.HgScriptRepository

Represents a script repository that stores build scripts in the Mercurial 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: DvcsScriptRepositoryBase
Datei anzeigen Open project: Zocdoc/ZocBuild.Database

Private Properties

Property Type Description

Public Methods

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

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

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

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

Protected Methods

Method Description
GetDiffedFilesAsync ( ) : Task>

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

Method Details

GetDiffedFilesAsync() protected method

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

HgScriptRepository() public method

Instantiates a Hg script repository for the given database at the specified directory location.
public HgScriptRepository ( DirectoryInfoBase scriptDirectory, string serverName, string databaseName, IExternalProcess hgExecutable, IFileSystem fileSystem, IParser sqlParser, ILogger logger, bool ignoreUnsupportedSubdirectories ) : System
scriptDirectory System.IO.Abstractions.DirectoryInfoBase The directory where build scripts are located.
serverName string The name of the database server.
databaseName string The name of the database.
hgExecutable IExternalProcess The Hg executable for interfacing with the dvcs repository.
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

HgScriptRepository() public method

Instantiates a Hg script repository for the given database at the specified directory location.
public HgScriptRepository ( string scriptDirectoryPath, string serverName, string databaseName, IExternalProcess hgExecutable, 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.
hgExecutable IExternalProcess The Hg executable for interfacing with the dvcs repository.
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