File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
luminus/hello/resources/sql
macchiato/hello/src/hello Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 1
1
-- :name get-all-fortunes :? :*
2
2
-- select all records from the fortune table
3
- SELECT * FROM " Fortune "
3
+ SELECT * FROM " fortune "
4
4
5
5
-- :name update-world! :! :1
6
6
-- update an existing world record
7
- UPDATE " World "
7
+ UPDATE " world "
8
8
SET " randomnumber" = :randomnumber
9
9
WHERE id = :id
10
10
11
11
-- :name get-world :? :1
12
12
-- get world by id
13
- SELECT * FROM " World "
13
+ SELECT * FROM " world "
14
14
WHERE id = :id
Original file line number Diff line number Diff line change 19
19
20
20
(defstate worlds
21
21
:start (.define @db
22
- " World "
22
+ " world "
23
23
#js{:id #js {:type " Sequelize.INTEGER"
24
24
:primaryKey true }
25
25
:randomnumber {:type " Sequelize.INTEGER" }}
26
26
#js {:timestamps false
27
27
:freezeTableName true
28
- :tableName " World " }))
28
+ :tableName " world " }))
29
29
30
30
(defstate fortunes
31
31
:start (.define @db
32
- " Fortune "
32
+ " fortune "
33
33
#js {:id #js {:type " Sequelize.INTEGER"
34
34
:primaryKey true }
35
35
:message {:type " Sequelize.STRING" }}
36
36
#js {:timestamps false
37
37
:freezeTableName true
38
- :tableName " Fortune " }))
38
+ :tableName " fortune " }))
39
39
40
40
(defn all-fortunes [handler error-handler]
41
41
(-> @fortunes
You can’t perform that action at this time.
0 commit comments