H2 database server mode and web console functions.
H2 database server mode and web console functions. See: http://h2database.com/javadoc/org/h2/tools/Server.html
(create-pg-server)
(create-pg-server args)
Creates PG server, does not start it, just returns primed new instance.
Accepts command-line-like argument list as vector, see H2 doc for details:
http://h2database.com/javadoc/org/h2/tools/Server.html
Some options that should be available:
[-pgPort] to set port for the server [-pgAllowOthers] to allow connections from outside localhost [-pgDaemon] to use a Daemon thread [-trace] for verbose STDOUT event printing [-ifExists] only existing databases will be used [-ifNotExists] will create a new database on access [-baseDir] the base directory for databases [-key [from to]] to map database name to another.
Creates PG server, does not start it, just returns primed new instance. Accepts command-line-like argument list as vector, see H2 doc for details: http://h2database.com/javadoc/org/h2/tools/Server.html Some options that should be available: [-pgPort] to set port for the server [-pgAllowOthers] to allow connections from outside localhost [-pgDaemon] to use a Daemon thread [-trace] for verbose STDOUT event printing [-ifExists] only existing databases will be used [-ifNotExists] will create a new database on access [-baseDir] the base directory for databases [-key [from to]] to map database name to another.
(create-tcp-server)
(create-tcp-server args)
Creates TCP server, does not start it, just returns primed new instance.
Accepts command-line-like argument list as vector, see H2 doc for details:
http://h2database.com/javadoc/org/h2/tools/Server.html
Some options that should be available:
[-tcpPort] to set port for the server [-tcpSSL] to enable SSL connections [-tcpPassword [pwd]] password for the DB Console administrator access [-tcpAllowOthers] to allow connections from outside localhost [-tcpDaemon] to use a Daemon thread [-trace] for verbose STDOUT event printing [-ifExists] only existing databases will be used [-ifNotExists] will create a new database on access [-baseDir] the base directory for databases [-key [from to]] to map database name to another.
Creates TCP server, does not start it, just returns primed new instance. Accepts command-line-like argument list as vector, see H2 doc for details: http://h2database.com/javadoc/org/h2/tools/Server.html Some options that should be available: [-tcpPort] to set port for the server [-tcpSSL] to enable SSL connections [-tcpPassword [pwd]] password for the DB Console administrator access [-tcpAllowOthers] to allow connections from outside localhost [-tcpDaemon] to use a Daemon thread [-trace] for verbose STDOUT event printing [-ifExists] only existing databases will be used [-ifNotExists] will create a new database on access [-baseDir] the base directory for databases [-key [from to]] to map database name to another.
(create-web-server)
(create-web-server args)
Creates Web server, does not start it, just returns primed new instance.
Accepts command-line-like argument list as vector, see H2 doc for details:
http://h2database.com/javadoc/org/h2/tools/Server.html
Some options that should be available:
[-webPort] to set port for the server [-webSSL] to enable SSL connections [-webAdminPassword [pwd]] password for the DB Console administrator access [-webAllowOthers] to allow connections from outside localhost [-webDaemon] to use a Daemon thread [-browser] try to start a browser connecting to DB Console [-trace] for verbose STDOUT event printing [-ifExists] only existing databases will be used [-ifNotExists] will create a new database on access [-baseDir] the base directory for databases [-key [from to]] to map database name to another.
Creates Web server, does not start it, just returns primed new instance. Accepts command-line-like argument list as vector, see H2 doc for details: http://h2database.com/javadoc/org/h2/tools/Server.html Some options that should be available: [-webPort] to set port for the server [-webSSL] to enable SSL connections [-webAdminPassword [pwd]] password for the DB Console administrator access [-webAllowOthers] to allow connections from outside localhost [-webDaemon] to use a Daemon thread [-browser] try to start a browser connecting to DB Console [-trace] for verbose STDOUT event printing [-ifExists] only existing databases will be used [-ifNotExists] will create a new database on access [-baseDir] the base directory for databases [-key [from to]] to map database name to another.
(get-port server)
Returns port the server is running on.
Returns port the server is running on.
(get-service server)
Returns service attached to the server.
Returns service attached to the server.
(get-status server)
Returns status of the server.
Returns status of the server.
(is-running? server)
(is-running? server trace-error)
Returns true if server is up, false otherwise.
Returns true if server is up, false otherwise.
(start! server)
Starts the server and returns it.
Starts the server and returns it.
(start-web-server connection)
(start-web-server connection ignore-properties)
Creates a Web server based on provided connection, with current transaction preserved. Opens web browser DB Console with appropriate session.
Purpose: manually inspect database state during debugging.
== !WARNING! == Blocks until user disconnects explicitly from the Web Console!
Closing the web browser is not it - MUST click 'Disconnect' within the UI! == !WARNING! ==
Creates a Web server based on provided connection, with current transaction preserved. Opens web browser DB Console with appropriate session. Purpose: manually inspect database state during debugging. == !WARNING! == Blocks until user disconnects explicitly from the Web Console! Closing the web browser is not it - MUST click 'Disconnect' within the UI! == !WARNING! ==
(stop! server)
Stops the server and returns it.
Stops the server and returns it.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close