Cosmetics
This commit is contained in:
parent
84e76c1e30
commit
b4472e7167
1 changed files with 4 additions and 2 deletions
|
|
@ -45,10 +45,12 @@
|
||||||
(for [[opt option-mask] cursor-options]
|
(for [[opt option-mask] cursor-options]
|
||||||
[opt (< 0 (bit-and (.getOptions db-cur) option-mask))])))
|
[opt (< 0 (bit-and (.getOptions db-cur) option-mask))])))
|
||||||
|
|
||||||
(defn add-option! [^DBCursor db-cur, ^String opt]
|
(defn add-option!
|
||||||
|
[^DBCursor db-cur ^String opt]
|
||||||
(.addOption db-cur (get cursor-options (keyword opt) 0)))
|
(.addOption db-cur (get cursor-options (keyword opt) 0)))
|
||||||
|
|
||||||
(defn remove-option! [^DBCursor db-cur, ^String opt]
|
(defn remove-option!
|
||||||
|
[^DBCursor db-cur ^String opt]
|
||||||
(.setOptions db-cur (bit-and-not (.getOptions db-cur)
|
(.setOptions db-cur (bit-and-not (.getOptions db-cur)
|
||||||
(get cursor-options (keyword opt) 0))))
|
(get cursor-options (keyword opt) 0))))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue