Liking cljdoc? Tell your friends :D

szew.h2.server

H2 database server mode and web console functions.

See: http://h2database.com/javadoc/org/h2/tools/Server.html

H2 database server mode and web console functions.

See: http://h2database.com/javadoc/org/h2/tools/Server.html
raw docstring

create-pg-serverclj

(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.
raw docstring

create-tcp-serverclj

(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.
raw docstring

create-web-serverclj

(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.
raw docstring

get-portclj

(get-port server)

Returns port the server is running on.

Returns port the server is running on.
raw docstring

get-serviceclj

(get-service server)

Returns service attached to the server.

Returns service attached to the server.
raw docstring

get-statusclj

(get-status server)

Returns status of the server.

Returns status of the server.
raw docstring

get-URLclj

(get-URL server)

Returns URL of the server.

Returns URL of the server.
raw docstring

is-running?clj

(is-running? server)
(is-running? server trace-error)

Returns true if server is up, false otherwise.

Returns true if server is up, false otherwise.
raw docstring

start!clj

(start! server)

Starts the server and returns it.

Starts the server and returns it.
raw docstring

start-web-serverclj

(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! ==
raw docstring

stop!clj

(stop! server)

Stops the server and returns it.

Stops the server and returns it.
raw docstring

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

× close