<< Back to previous view

[JDBC-53] create-table & drop-table doesn't honor naming strategy Created: 24/Apr/13  Updated: 15/Sep/13  Resolved: 15/Sep/13

Status: Resolved
Project: java.jdbc
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Defect Priority: Major
Reporter: Roman Scherer Assignee: Sean Corfield
Resolution: Completed Votes: 1
Labels: None


 Description   

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



 Comments   
Comment by Sean Corfield [ 24/Apr/13 11:08 AM ]

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.

Comment by David James [ 11/May/13 8:51 PM ]

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?

Comment by Sean Corfield [ 11/May/13 11:20 PM ]

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.

Comment by Matt Oquist [ 12/May/13 8:56 PM ]

Thanks for the update; looking forward to it!

Comment by Sean Corfield [ 15/Sep/13 3:39 PM ]

Will be in alpha5

Generated at Mon Oct 20 23:13:48 CDT 2014 using JIRA 4.4#649-r158309.