(add-role! customer-id role database-conn)
Inputs: [customer-id :- s/Uuid role :- s/Keyword database-conn] Returns: (s/maybe models.customer/Customer)
Inputs: [customer-id :- s/Uuid role :- s/Keyword database-conn] Returns: (s/maybe models.customer/Customer)
(by-username username database-conn)
Inputs: [username :- s/Str database-conn] Returns: (s/maybe models.customer/Customer)
Inputs: [username :- s/Str database-conn] Returns: (s/maybe models.customer/Customer)
(insert! {:customer/keys [id username name roles hashed-password]}
database-conn)
Inputs: [#:customer{:keys [id username name roles hashed-password]} :- models.customer/Customer database-conn] Returns: models.customer/Customer
Inputs: [#:customer{:keys [id username name roles hashed-password]} :- models.customer/Customer database-conn] Returns: models.customer/Customer
(lookup customer-id database-conn)
Inputs: [customer-id :- s/Uuid database-conn] Returns: (s/maybe models.customer/Customer)
Inputs: [customer-id :- s/Uuid database-conn] Returns: (s/maybe models.customer/Customer)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close