Neo4j¶
Bases: Spout
__init__(output, state, **kwargs)
¶
Initialize the Neo4j class.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
output |
BatchOutput
|
An instance of the BatchOutput class for saving the data. |
required |
state |
State
|
An instance of the State class for maintaining the state. |
required |
**kwargs |
Additional keyword arguments. |
{}
|
Using geniusrise to invoke via command line¶
genius Neo4j rise \
batch \
--output_s3_bucket my_bucket \
--output_s3_folder s3/folder \
none \
fetch \
--args host=localhost port=7687 username=myusername password=mypassword
Using geniusrise to invoke via YAML file¶
fetch(host, port, username, password)
¶
📖 Fetch data from a Neo4j database and save it in batch.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
host |
str
|
The Neo4j host. |
required |
port |
int
|
The Neo4j port. |
required |
username |
str
|
The Neo4j username. |
required |
password |
str
|
The Neo4j password. |
required |
Raises:
Type | Description |
---|---|
Exception
|
If unable to connect to the Neo4j server or execute the query. |