During the initialization of the database adapter, HoneyEQL enables you to configure and override certain default behaviors of it.
(ns ..
(:require [honeyeql.db :as db]))
(def db-spec ...)
; using default behaviors
(def db-adapter (db/initialize db-spec))
; overriding default behaviors
(def heql-config {...})
(def db-adapter (db/initialize db-spec heql-config))
The heql-config
is a map with the following keys.
:eql/mode
- configures the EQL syntax
:eql.mode/lenient
- Use EQL Lenient Syntax (default):eql.mode/strict
- Use EQL Standard Syntax:attr/return-as
- configures the naming convention of the attributes in the return values.
:naming-convention/qualified-kebab-case
(default); sample return value
{:actor/first-name "PENELOPE"
:actor/last-name "GUINESS"}
:naming-convention/unqualified-kebab-case
; sample return value
{first-name "PENELOPE"
last-name "GUINESS"}
:naming-convention/unqualified-camel-case
; sample return value
{firstName "PENELOPE"
lastName "GUINESS"}
Can you improve this documentation?Edit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close