Liking cljdoc? Tell your friends :D

framework.db.core

Data source builder

Data source builder
raw docstring

->dbclj

(->db dbtype classname port dbname user embedded datasource)

Positional factory function for class framework.db.core.db.

Positional factory function for class framework.db.core.db.
sourceraw docstring

->jsonclj

source

->pgobjectclj

(->pgobject x)

Transforms Clojure data to a PGobject that contains the data as JSON. PGObject type defaults to jsonb but can be changed via metadata key :pgtype

Transforms Clojure data to a PGobject that contains the data as
JSON. PGObject type defaults to `jsonb` but can be changed via
metadata key `:pgtype`
sourceraw docstring

->sql-paramsclj

(->sql-params sql-map)

Parse sql-map using honeysql format function with pre-defined options that target postgresql.

Parse sql-map using honeysql format function with pre-defined
options that target postgresql.
sourceraw docstring

<-jsonclj

source

<-pgobjectclj

(<-pgobject v)

Transform PGobject containing json or jsonb value to Clojure data.

Transform PGobject containing `json` or `jsonb` value to Clojure
data.
sourceraw docstring

connectclj

(connect {pg-config :xiana/postgresql :as config})

Adds :datasource key to the :xiana/postgresql config section and duplicates :xiana/postgresql under the top-level :db key.

Adds `:datasource` key to the `:xiana/postgresql` config section
and duplicates `:xiana/postgresql` under the top-level `:db` key.
sourceraw docstring

db-accessclj

Database access interceptor, works from :query and from db-queries keys Enter: nil. Leave: Fetch and execute a given query using the chosen database driver, if succeeds associate its results into state response data. Remember the entry query must be a sql-map, e.g: {:select [:*] :from [:users]}.

Database access interceptor, works from `:query` and from `db-queries` keys
Enter: nil.
Leave: Fetch and execute a given query using the chosen database
driver, if succeeds associate its results into state response data.
Remember the entry query must be a sql-map, e.g:
{:select [:*] :from [:users]}.
sourceraw docstring

default-optsclj

source

docker-postgres!clj

(docker-postgres! {pg-config :xiana/postgresql :as config})
source

executeclj

(execute datasource sql-map)

Gets datasource, parse the given sql-map (query) and execute it using jdbc/execute!, and returns the modified keys

Gets datasource, parse the given sql-map (query) and
execute it using `jdbc/execute!`, and returns the modified keys
sourceraw docstring

get-datasourceclj

(get-datasource config)
(get-datasource config count)
source

in-transactionclj

(in-transaction tx sql-map)
(in-transaction tx sql-map jdbc-opts)
source

map->dbclj

(map->db m__7910__auto__)

Factory function for class framework.db.core.db, taking a map of keywords to field values.

Factory function for class framework.db.core.db, taking a map of keywords to field values.
sourceraw docstring

mapperclj

source

migrate!clj

(migrate! config)
(migrate! config count)
source

multi-execute!clj

(multi-execute! datasource {:keys [queries transaction?]})
source

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

× close