vesoft-inc / nebula-importer

Nebula Graph Importer with Go
Apache License 2.0
90 stars 60 forks source link

cmd add extra parameters #222

Closed bangsun1234 closed 1 year ago

bangsun1234 commented 1 year ago

Startup parameter added file path that can configure tag/edgeType. Priority: Startup Parameter > Configuration File. The default parameter is configuration file. Cmd parameter style like: {tag name/edgeType name}={path}, example: person=/home/user/person.csv,Support for multiple parameters, multiple same tag/edgeType are not supported.

Startup command like: ./nebula-importer --config = =

CLAassistant commented 1 year ago

CLA assistant check
All committers have signed the CLA.

veezhang commented 1 year ago

@bangsun1234 Thanks a lot for your contribution! In my opinion, this approach may not be general enough to support more parameter configurations. What do you think?

veezhang commented 1 year ago

Maybe something like JSON Patch is more appropriate.

veezhang commented 1 year ago

Or support environment variable in configuration file, does this solve your proble?

veezhang commented 1 year ago

We will close it, thank you for your contribution. If need, you can open it again.