Property | Type | Description | |
---|---|---|---|
FileSystem | IFileSystem | ||
IsFileInSupportedDirectory | bool>.Func | ||
Logger | ILogger |
Method | Description | |
---|---|---|
FileSystemScriptRepository ( |
Instantiates a file system repository for the given database at the specified directory location.
|
|
FileSystemScriptRepository ( string scriptDirectoryPath, string serverName, string databaseName, IFileSystem fileSystem, IParser sqlParser, ILogger logger, bool ignoreUnsupportedSubdirectories ) : System |
Instantiates a file system repository for the given database at the specified directory location.
|
|
GetAllScriptsAsync ( ) : Task |
Gets all the build scripts for database objects contained in the repository.
|
|
GetChangedScriptsAsync ( ) : Task |
This method is not supported and calling it will raise a NotSupportedException.
|
|
GetScriptAsync ( TypedDatabaseObject dbObject ) : Task |
Retrieves the build script corresponding to the given database object identifier.
|
|
GetScriptFile ( TypedDatabaseObject dbObject ) : System.IO.Abstractions.FileInfoBase |
Retrieves the script file for the given database object identifier, if and only if the database object belongs to this script repository.
|
Method | Description | |
---|---|---|
GetScriptAsync ( System.IO.Abstractions.FileInfoBase file ) : Task |
Retrieves the build script contained in the given file.
|
|
GetScriptsAsync ( ) : Task |
Gets the build scripts in the repository that satisfy the given predicate.
|
Method | Description | |
---|---|---|
GetDropScript ( TypedDatabaseObject dbObject ) : string |
public FileSystemScriptRepository ( |
||
scriptDirectory | 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 |
public FileSystemScriptRepository ( 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 |
protected GetScriptAsync ( System.IO.Abstractions.FileInfoBase file ) : Task |
||
file | System.IO.Abstractions.FileInfoBase | The file containing a build script |
return | Task |
public GetScriptAsync ( TypedDatabaseObject dbObject ) : Task |
||
dbObject | TypedDatabaseObject | The database object for which a build script is desired. |
return | Task |
public GetScriptFile ( TypedDatabaseObject dbObject ) : System.IO.Abstractions.FileInfoBase | ||
dbObject | TypedDatabaseObject | The database object for which a script file is desired. |
return | System.IO.Abstractions.FileInfoBase |
protected Func |
||
return | bool>.Func |