Skip to content

Creating tables with autoincrement id #6

@YuraLaguta

Description

@YuraLaguta

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");
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions