Data source builder
Data source builder
(->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.
(->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`
(->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.
(<-pgobject v)
Transform PGobject containing json
or jsonb
value to Clojure
data.
Transform PGobject containing `json` or `jsonb` value to Clojure data.
(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.
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]}.
(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
(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close