C# Class ZocBuild.Database.ScriptFile

Represents a build script for a database object.
Datei anzeigen Open project: Zocdoc/ZocBuild.Database Class Usage Examples

Private Properties

Property Type Description
AssertMatchingContent void
AssignExistingDatabaseDependencies void

Public Methods

Method Description
ScriptFile ( DatabaseObject scriptObject, BuildErrorBase error ) : System

Instantiates a build script object in the given error state.

The instance created by this constructor represents a build script that was determined to be invalid even before the script content was parsed. This usually happens when the script repository encounters a problem.

ScriptFile ( TypedDatabaseObject scriptObject, string scriptContent, IParser parser ) : System

Instantiates a build script object.

This constructor will attempt to parse the given SQL and determine whether it is valid and whether the script creates the object specified by the given identifier. If the script is invalid in anyway, the ScriptError property will reflect that.

Private Methods

Method Description
AssertMatchingContent ( ) : void
AssignExistingDatabaseDependencies ( ISet dependencies ) : void

Method Details

ScriptFile() public method

Instantiates a build script object in the given error state.
The instance created by this constructor represents a build script that was determined to be invalid even before the script content was parsed. This usually happens when the script repository encounters a problem.
public ScriptFile ( DatabaseObject scriptObject, BuildErrorBase error ) : System
scriptObject DatabaseObject The identifier of the database object.
error BuildErrorBase The error that was encountered for this script.
return System

ScriptFile() public method

Instantiates a build script object.
This constructor will attempt to parse the given SQL and determine whether it is valid and whether the script creates the object specified by the given identifier. If the script is invalid in anyway, the ScriptError property will reflect that.
public ScriptFile ( TypedDatabaseObject scriptObject, string scriptContent, IParser parser ) : System
scriptObject TypedDatabaseObject The identifier of the database object to build.
scriptContent string The build script SQL content.
parser IParser The sql script parser for reading the SQL script content.
return System