Liking cljdoc? Tell your friends :D

sqlg-clj.config


config->cljclj

(config->clj cf)

Converts an Apache Commons Configuration object to a Clojure map.

Parameters: cf - The Configuration object to convert

Returns a map of configuration properties.

Converts an Apache Commons Configuration object to a Clojure map.

Parameters:
  cf - The Configuration object to convert

Returns a map of configuration properties.
sourceraw docstring

db-configclj

(db-config {:keys [type host port name user pass]})

Creates a Configuration object from a map of database parameters.

Expected keys: :type - Database type (e.g. 'postgresql') :host - Database host :port - Database port :name - Database name :user - Database username (optional) :pass - Database password (optional)

Returns an Apache Commons Configuration object ready for use with SqlgGraph.

Creates a Configuration object from a map of database parameters.

Expected keys:
  :type - Database type (e.g. 'postgresql')
  :host - Database host
  :port - Database port
  :name - Database name
  :user - Database username (optional)
  :pass - Database password (optional)

Returns an Apache Commons Configuration object ready for use with SqlgGraph.
sourceraw docstring

graphclj

(graph config)

Creates a SqlgGraph instance from a Configuration.

Parameters: config - An Apache Commons Configuration object (typically created with db-config)

Returns a Graph instance with the specified configuration.

Creates a SqlgGraph instance from a Configuration.

Parameters:
  config - An Apache Commons Configuration object (typically created with db-config)

Returns a Graph instance with the specified configuration.
sourceraw docstring

load-configclj

Load configuration from properties files. Delegates to java-properties.core/load-config.

Load configuration from properties files.
Delegates to java-properties.core/load-config.
sourceraw docstring

open-graphclj

(open-graph conf)

Opens a new TinkerGraph with default configuration or open a new Graph instance with the specified configuration. The configuration may be a path to a file or a Map of configuration options.

Parameters: conf - One of: - Apache Commons Configuration object (returns SqlgGraph) - Clojure map of configuration options - String path to a configuration file

Returns a Graph instance with the specified configuration.

Opens a new TinkerGraph with default configuration or open a new Graph instance with the specified
configuration. The configuration may be a path to a file or a Map of configuration options.

Parameters:
  conf - One of:
         - Apache Commons Configuration object (returns SqlgGraph)
         - Clojure map of configuration options
         - String path to a configuration file

Returns a Graph instance with the specified configuration.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close