java.jdbc

create-table & drop-table doesn't honor naming strategy

Details

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

Description

create-table & drop-table doesn't take the current naming strategy into account.

Activity

Hide
Sean Corfield added a comment -

Just to note: the naming strategy stuff, based on dynamically bound globals, is all deprecated in 0.3.0. Alternatives to create-table and drop-table, which respect the new entities function approach, will be provided in an upcoming alpha build of 0.3.0.

Show
Sean Corfield added a comment - Just to note: the naming strategy stuff, based on dynamically bound globals, is all deprecated in 0.3.0. Alternatives to create-table and drop-table, which respect the new entities function approach, will be provided in an upcoming alpha build of 0.3.0.
Hide
David James added a comment -

Any update on this? I noticed the deprecations while reading the code. Could you say a few words or add a few docs on the 0.3 way of doing naming strategies?

Show
David James added a comment - Any update on this? I noticed the deprecations while reading the code. Could you say a few words or add a few docs on the 0.3 way of doing naming strategies?
Hide
Sean Corfield added a comment -

The replacement is entities and identifiers (as keyword arguments in java.jdbc functions and as macros in java.jdbc.sql). You can see some examples here:

http://clojure.github.io/java.jdbc/doc/clojure/java/jdbc/NameMapping.html

Replacements for create-table / drop-table will be added before beta1. I'm not sure right now how many more alphas we'll have. There's a lot of churn in the code right now and I want it to be feature complete and fairly settled before the first beta.

Show
Sean Corfield added a comment - The replacement is entities and identifiers (as keyword arguments in java.jdbc functions and as macros in java.jdbc.sql). You can see some examples here: http://clojure.github.io/java.jdbc/doc/clojure/java/jdbc/NameMapping.html Replacements for create-table / drop-table will be added before beta1. I'm not sure right now how many more alphas we'll have. There's a lot of churn in the code right now and I want it to be feature complete and fairly settled before the first beta.
Hide
Matt Oquist added a comment -

Thanks for the update; looking forward to it!

Show
Matt Oquist added a comment - Thanks for the update; looking forward to it!
Hide
Sean Corfield added a comment -

Will be in alpha5

Show
Sean Corfield added a comment - Will be in alpha5

People

Vote (1)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: