Skip to content

Commit

Permalink
fix the val type in the schema
Browse files Browse the repository at this point in the history
  • Loading branch information
yito88 committed Feb 27, 2024
1 parent 632aeb4 commit e308c6a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scalardb/src/scalardb/elle_append.clj
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
(:import (com.scalar.db.api Get
Put)
(com.scalar.db.io IntValue
TextValue
Key)
(com.scalar.db.exception.transaction
UnknownTransactionStatusException)))
Expand All @@ -21,7 +22,7 @@
(def ^:const SCHEMA {:transaction true
:partition-key [ID]
:clustering-key []
:columns {(keyword ID) "INT" (keyword VALUE) "INT"}})
:columns {(keyword ID) "INT" (keyword VALUE) "TEXT"}})

(defn prepare-get
[table id]
Expand All @@ -36,7 +37,7 @@
(Put.)
(.forNamespace KEYSPACE)
(.forTable table)
(.withValue (IntValue. VALUE value))))
(.withValue (TextValue. VALUE value))))

(defn get-value
[r]
Expand Down

0 comments on commit e308c6a

Please sign in to comment.