Skip to content

Commit eed01f2

Browse files
author
jj
committed
Add crud for aleph
1 parent 971c9e4 commit eed01f2

7 files changed

Lines changed: 279 additions & 159 deletions

File tree

frameworks/aleph/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
FROM clojure:temurin-21-lein AS builder
1+
FROM clojure:temurin-26-lein-trixie AS builder
22
WORKDIR /app
33
COPY project.clj ./
44
COPY resources ./resources
55
RUN lein deps
66
COPY src ./src
77
RUN lein with-profile uberjar uberjar
88

9-
FROM eclipse-temurin:25-jre
9+
FROM eclipse-temurin:26-jre
1010
RUN mkdir -p /data/static
1111
WORKDIR /app
1212
COPY --from=builder /app/target/aleph-bench-0.1.0-standalone.jar /app/app.jar

frameworks/aleph/project.clj

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,15 @@
2424
io.netty/netty-transport-native-kqueue
2525
io.netty/netty-transport-native-unix-common]]
2626
[io.netty/netty-all "4.2.12.Final"]
27-
[org.clojars.jj/tassu "1.0.3"]
27+
[org.clojars.jj/tassu "1.0.4"]
2828
[org.clojars.jj/boa-sql "1.0.10"]
2929
[org.clojars.jj/async-boa-sql "1.0.10"]
3030
[org.clojars.jj/next-jdbc-adapter "1.0.10"]
3131
[org.clojars.jj/vertx-pg-client-async-boa-adapter "1.0.1"]
3232
[org.xerial/sqlite-jdbc "3.49.1.0"]
3333
[metosin/jsonista "1.0.0"]
34-
[com.github.seancorfield/next.jdbc "1.3.1093"]]
34+
35+
[org.clojure/core.cache "1.2.263"]]
3536

3637
:main ^:skip-aot aleph-bench.core
3738

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
INSERT INTO items (id, name, category, price, quantity, active, tags, rating_score, rating_count) VALUES (:id, :name, :category, :price, :quantity, true, '["bench"]', 0, 0) ON CONFLICT (id) DO UPDATE SET name = EXCLUDED.name, price = EXCLUDED.price, quantity = EXCLUDED.quantity RETURNING id
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
SELECT id, name, category, price, quantity, active, tags, rating_score, rating_count FROM items WHERE category = :category ORDER BY id LIMIT :limit OFFSET :offset
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
SELECT id, name, category, price, quantity, active, tags, rating_score, rating_count FROM items WHERE id = :id LIMIT 1
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
UPDATE items SET name = :name, price = :price, quantity = :quantity WHERE id = :id

frameworks/aleph/src/aleph_bench/core.clj

Lines changed: 270 additions & 155 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)