java.jdbc

Support (driver specific) constants for :result-type :concurrency and :cursors next to current keywords.

Details

  • Type: Enhancement Enhancement
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Completed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None

Description

The JDBC spec supports vendors to add their own specific constants for result set holdability, concurrency and cursor types. With clojure.java.jdbc, these are abstracted away to give easy acces through keywords that are mapped to specific constants. With only an option for keywords, other constants cannot be used.

When result-set-type, result-set-concurrency and result-set-holdability would be changed from map lookups to functions with case statements containing the keyword / constant pairs, but :else returning the parameter itself, we could use both the current behavior {:cursor :read-only} as well as using vendor specific parameters {:cursor SQLServerResultSet/TYPE_SS_SERVER_CURSOR_FORWARD_ONLY}.

Activity

Hide
Sean Corfield added a comment -

Very good point and easy to implement. Thanks Niels!

Show
Sean Corfield added a comment - Very good point and easy to implement. Thanks Niels!
Hide
Sean Corfield added a comment -

Will be in 0.3.6.

Show
Sean Corfield added a comment - Will be in 0.3.6.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: