Liking cljdoc? Tell your friends :D

dda.pallet.dda-mariadb-crate.infra.script


create-databaseclj

(create-database
  &
  {:keys [user-name user-passwd db-name create-options]
   :or {user-name "root" user-passwd "test1234" create-options ""}})
source

create-userclj

(create-user &
             {:keys [user-name user-passwd db-user db-passwd]
              :or {user-name "root" user-passwd "test1234"}})
source

grantclj

(grant &
       {:keys [user-name user-passwd db-user-name db-user-passwd
               grant-privileges grant-level]
        :or {user-name "root" user-passwd "test1234" grant-privileges "ALL"}})

examples for level are database.*.

users are defined at localhost.

examples for level are `database`.*. 

users are defined at localhost.
sourceraw docstring

init-databaseclj

(init-database superuser-name
               superuser-passwd
               db-name
               db-user-name
               db-user-passwd
               create-options)
source

mysql-scriptclj

(mysql-script &
              {:keys [user-name user-passwd sql-script]
               :or {user-name "root" user-passwd "test1234"}})

Execute a mysql script. If no user is given it defaults to root.

Execute a mysql script. If no user is given it defaults to root.
sourceraw docstring

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

× close