Support using %seed with local file path #292
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issue #, if available: #44, #485
Description of changes:
%seed
to support loading from a specified file location.--language
: Specifies which language endpoint(gremlin
,cypher
, orsparql
) to submit the queries to.--source
: Specifies the full path to a data file, or a directory containing multiple files, that you would like to load queries from.-f
/--full-file-query
: If using Gremlin or openCypher, specifying this flag will submit the entire content of the file as a single query, instead of one query per line.Example run with arguments to load from a local file:
%seed --language Gremlin --source /Users/foo/seed_directory/data_file_0.txt -f --run
Running
%seed
by itself will allow you to select the same options.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.