Browse Source

Add DataDir config to orly-db-neo4j

Required for Neo4j backend metadata storage.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
main
woikos 4 months ago
parent
commit
efe9edbe92
No known key found for this signature in database
  1. 4
      cmd/orly-db-neo4j/main.go

4
cmd/orly-db-neo4j/main.go

@ -26,6 +26,9 @@ type Config struct { @@ -26,6 +26,9 @@ type Config struct {
// LogLevel is the logging level
LogLevel string `env:"ORLY_DB_LOG_LEVEL" default:"info" usage:"log level (trace, debug, info, warn, error)"`
// DataDir is required by the database layer for metadata storage
DataDir string `env:"ORLY_DATA_DIR" default:"/tmp/orly-neo4j" usage:"data directory for metadata"`
// Neo4j configuration
Neo4jURI string `env:"ORLY_NEO4J_URI" default:"bolt://localhost:7687" usage:"Neo4j connection URI"`
Neo4jUser string `env:"ORLY_NEO4J_USER" default:"neo4j" usage:"Neo4j username"`
@ -58,6 +61,7 @@ func main() { @@ -58,6 +61,7 @@ func main() {
// Create database configuration
dbCfg := &database.DatabaseConfig{
DataDir: cfg.DataDir,
LogLevel: cfg.LogLevel,
Neo4jURI: cfg.Neo4jURI,
Neo4jUser: cfg.Neo4jUser,

Loading…
Cancel
Save