We use created_index as INTEGER PRIMARY KEY, if it exists. * Otherwise, we make an explicit rowid (implicit rowids cannot be * used as a foreign key). */
| 1596 | * Otherwise, we make an explicit rowid (implicit rowids cannot be |
| 1597 | * used as a foreign key). */ |
| 1598 | static const char *primary_key_name(const struct table_desc *td) |
| 1599 | { |
| 1600 | if (td->has_created_index) |
| 1601 | return "created_index"; |
| 1602 | |
| 1603 | return "rowid"; |
| 1604 | } |
| 1605 | |
| 1606 | /* Creates sql statements, initializes table */ |
| 1607 | static void finish_td(struct plugin *plugin, struct table_desc *td) |
no outgoing calls
no test coverage detected