Sparksee
6.0.2
|
ScriptParser. More...
Instance Methods | |
(id) | - init |
Constructor. | |
(void) | - setOutputLog: |
Sets the output log. More... | |
(void) | - setErrorLog: |
Sets the error log. More... | |
(BOOL) | - parse:execute:localeStr: |
Parses the given input file. More... | |
Class Methods | |
(void) | + generateSchemaScript:db: |
Writes an script with the schema definition for the given database. More... | |
ScriptParser.
The ScriptParser can create schemas and load data from a set of commands in a sparksee script.
A SPARKSEE script contains an ordered list of commands. ScriptParser will execute each one of them in order. Commands may create schemas, define nodes and edges, and load data into a previous defined SPARKSEE schema.
Check out the 'Scripting' chapter in the SPARKSEE User Manual for a comprehensive explanation on the grammar of the SPARKSEE commands and how they work.
+ (void) generateSchemaScript: | (NSString *) | path | |
db: | (STSDatabase *) | db | |
Writes an script with the schema definition for the given database.
path | [in] Filename of the script to be writen. |
db | [in] Database. |
System.IO.IOException | If bad things happen opening or writing the file. |
- (BOOL) parse: | (NSString *) | path | |
execute: | (BOOL) | execute | |
localeStr: | (NSString *) | localeStr | |
Parses the given input file.
path | [in] Input file path. |
execute | [in] If TRUE the script is executed, if FALSE it is just parsed. |
localeStr | [in] The locale string for reading the input file. See CSVReader. |
System.IO.IOException | If bad things happen opening the file. |
- (void) setErrorLog: | (NSString *) | path |
Sets the error log.
If not set, error log corresponds to standard error output.
path | [in] Path of the error log. |
System.IO.IOException | If bad things happen opening the file. |
- (void) setOutputLog: | (NSString *) | path |
Sets the output log.
If not set, output log corresponds to standard output.
path | [in] Path of the output log. |
System.IO.IOException | If bad things happen opening the file. |