Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
1,956 additions
and
883 deletions.
There are no files selected for viewing
100 changes: 50 additions & 50 deletions
100
graphql_compiler/tests/snapshot_tests/snapshots/snap_test_orientdb_match_query.py
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2,545 changes: 1,740 additions & 805 deletions
2,545
graphql_compiler/tests/test_data_tools/data/commands.sql
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Copyright 2017-present Kensho Technologies, LLC. | ||
from .utils import create_vertex_statement, get_random_date, get_uuid | ||
|
||
|
||
EVENT_NAMES_LIST = ( | ||
"Birthday", | ||
"Bar Mitzvah", | ||
"Coronation", | ||
"Re-awakening", | ||
) | ||
|
||
|
||
def _create_event_statement(event_name): | ||
"""Return a SQL statement to create a Event vertex.""" | ||
field_name_to_value = {'name': event_name, 'event_date': get_random_date(), 'uuid': get_uuid()} | ||
return create_vertex_statement('Event', field_name_to_value) | ||
|
||
|
||
def get_event_generation_commands(): | ||
"""Return a list of SQL statements to create all event vertices.""" | ||
command_list = [] | ||
|
||
for event_name in EVENT_NAMES_LIST: | ||
command_list.append(_create_event_statement(event_name)) | ||
|
||
return command_list |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters