[JDBC-62] creating indices - patch? Created: 20/Jun/13  Updated: 01/Jun/16  Resolved: 27/Jun/13

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

Type: Enhancement Priority: Minor
Reporter: Matt Oquist Assignee: Sean Corfield
Resolution: Completed Votes: 0
Labels: None

Attachments: File java-jdbc-ddl-indices.diff     File java-jdbc-ddl-indices-v2.diff    


java.jdbc currently has no support for creating and deleting indices. I wrote create-index-ddl for my own project to handle this; I could work that into a patch if that would be helpful. I know you're re-working the global DB connection right now, so if you'd like a patch, but would like me to wait until the code has settled down, that's fine, too.

Comment by Sean Corfield [ 20/Jun/13 10:55 PM ]

Thanx Matt. Definitely interested. DDL is an area the library is weak in and I'm thinking of adding clojure.java.jdbc.ddl as a namespace dedicated to DDL-generating functions, if you'd like to kick that off?

Comment by Matt Oquist [ 23/Jun/13 9:27 PM ]

Here's a patch to add ddl/create-index and ddl/drop-index. I didn't add clojure.java.jdbc/create-index (and drop-) since clojure.java.jdbc/create-table is deprecated.

Comment by Sean Corfield [ 24/Jun/13 12:28 PM ]

Thanx. The patch is not in the correct format (it's just a diff, not a patch) - can you redo it?

Comment by Matt Oquist [ 25/Jun/13 8:27 AM ]

NP; sorry about that. Will this do?

Comment by Sean Corfield [ 27/Jun/13 12:31 PM ]

Perfect thanx!

Comment by Sean Corfield [ 27/Jun/13 12:33 PM ]

Patch merged. Documentation updated.

Generated at Mon Mar 25 23:10:27 CDT 2019 using JIRA 4.4#649-r158309.