File tree Expand file tree Collapse file tree 8 files changed +60
-38
lines changed Expand file tree Collapse file tree 8 files changed +60
-38
lines changed Original file line number Diff line number Diff line change
1
+ .DS_Store
Original file line number Diff line number Diff line change 6
6
:path " deps.edn"
7
7
:target [:deps ]
8
8
:action :merge
9
- :value {io.github.kit-clj/kit-metrics {:mvn/version " 1.0.1 " }}}
9
+ :value {io.github.kit-clj/kit-metrics {:mvn/version " 1.0.2 " }}}
10
10
{:type :edn
11
11
:path " resources/system.edn"
12
12
:target []
Original file line number Diff line number Diff line change 6
6
:kit/metrics
7
7
{:path " metrics"
8
8
:doc " adds support for metrics using prometheus through iapetos" }
9
+ :kit/sql
10
+ {:path " sql"
11
+ :doc " adds generic SQL support. Requires manual database driver setup" }
9
12
:kit/sqlite
10
13
{:path " sqlite"
11
14
:doc " adds support for SQLite embedded database" }
15
+ :kit/postgres
16
+ {:path " postgres"
17
+ :doc " adds support for PostgreSQL database" }
12
18
:kit/cljs
13
19
{:path " cljs"
14
20
:doc " adds support for cljs using shadow-cljs" }
Original file line number Diff line number Diff line change
1
+ {:default
2
+ {:require-restart? true
3
+ :requires [:kit/sql ]
4
+ :actions
5
+ {:injections [{:type :edn
6
+ :path " resources/system.edn"
7
+ :target []
8
+ :action :merge
9
+ :value {:db.sql/connection #profile
10
+ {:dev {:jdbc-url " jdbc:postgresql://localhost:5432/<<name>>_dev?user=<<name>>&password=<<name>>" }
11
+ :test {:jdbc-url " jdbc:postgresql://localhost:5432/<<name>>_test?user=<<name>>&password=<<name>>" }
12
+ :prod {:jdbc-url #env JDBC_URL}}}}
13
+ {:type :edn
14
+ :path " deps.edn"
15
+ :target [:deps ]
16
+ :action :merge
17
+ :value {org.postgresql/postgresql {:mvn/version " 42.3.4" }}}]}}}
Original file line number Diff line number Diff line change
1
+ -- Place your queries here. Docs available https://www.hugsql.org/
Original file line number Diff line number Diff line change
1
+ {:default
2
+ {:require-restart? true
3
+ :actions
4
+ {:assets [[" assets/queries.sql" " resources/sql/queries.sql" ]
5
+ " resources/migrations" ]
6
+ :injections [{:type :edn
7
+ :path " resources/system.edn"
8
+ :target []
9
+ :action :merge
10
+ :value {:db.sql/connection #profile
11
+ {:dev {:jdbc-url " jdbc:TODO" }
12
+ :test {:jdbc-url " jdbc:TODO" }
13
+ :prod {:jdbc-url #env JDBC_URL}}
14
+ :db.sql/query-fn {:conn #ig/ref :db.sql/connection
15
+ :options {}
16
+ :filename " sql/queries.sql" }
17
+ :db.sql/migrations {:store :database
18
+ :db {:datasource #ig/ref :db.sql/connection }
19
+ :migrate-on-init? true }}}
20
+ {:type :edn
21
+ :path " deps.edn"
22
+ :target [:deps ]
23
+ :action :merge
24
+ :value {io.github.kit-clj/kit-sql-conman {:mvn/version " 1.0.1" }
25
+ io.github.kit-clj/kit-sql-migratus {:mvn/version " 1.0.0" }}}
26
+ {:type :clj
27
+ :path " src/clj/<<sanitized>>/core.clj"
28
+ :action :append-requires
29
+ :value [" [kit.edge.db.sql.conman]
30
+ [kit.edge.db.sql.migratus]" ]}]}}}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
{:default
2
2
{:require-restart? true
3
+ :requires [:kit/sql ]
3
4
:actions
4
- {:assets [[" assets/queries.sql" " resources/sql/queries.sql" ]
5
- " resources/migrations" ]
6
- :injections [{:type :edn
5
+ {:injections [{:type :edn
7
6
:path " resources/system.edn"
8
7
:target []
9
8
:action :merge
10
9
:value {:db.sql/connection #profile
11
10
{:dev {:jdbc-url " jdbc:sqlite:<<name>>_dev.db" }
12
11
:test {:jdbc-url " jdbc:sqlite:<<name>>_test.db" }
13
- :prod {:jdbc-url #env JDBC_URL}}
14
- :db.sql/query-fn {:conn #ig/ref :db.sql/connection
15
- :options {}
16
- :filename " sql/queries.sql" }
17
- :db.sql/migrations {:store :database
18
- :db {:datasource #ig/ref :db.sql/connection }
19
- :migrate-on-init? true }}}
12
+ :prod {:jdbc-url #env JDBC_URL}}}}
20
13
{:type :edn
21
14
:path " deps.edn"
22
15
:target [:deps ]
23
16
:action :merge
24
- :value {io.github.kit-clj/kit-sql {:mvn/version " 1.0.0" }
25
- org.xerial/sqlite-jdbc {:mvn/version " 3.36.0.3" }}}
26
- {:type :clj
27
- :path " src/clj/<<sanitized>>/core.clj"
28
- :action :append-requires
29
- :value [" [kit.edge.db.sql]" ]}]}}}
17
+ :value {org.xerial/sqlite-jdbc {:mvn/version " 3.36.0.3" }}}]}}}
You can’t perform that action at this time.
0 commit comments