Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creating tables with autoincrement id #6

Open
YuraLaguta opened this issue May 20, 2013 · 1 comment
Open

Creating tables with autoincrement id #6

YuraLaguta opened this issue May 20, 2013 · 1 comment

Comments

@YuraLaguta
Copy link

I find this method useful for creating routing tables for many-to-many relations
Perhaps some else would found it useful

/**
* For autoincrement key
*
* @param table
*/
public VTableCreation(String table) {
this.table = table;
columns = new ArrayList();
indices = new HashSet();
sb = new StringBuilder();
sb.append("CREATE TABLE IF NOT EXISTS ").append(table).append(" (_id INTEGER PRIMARY KEY");
}

@coocood
Copy link
Owner

coocood commented May 20, 2013

I don't have much time to add new features for this repo, but you can fork it and add features yourself, and send a pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants