Title: For an sqlite table with a primary key that is AUTOINCREMENTED sqlautocode will fail (sqlite_sequence issue) · Issue #30 · unalloc/sqlautocode · GitHub
Open Graph Title: For an sqlite table with a primary key that is AUTOINCREMENTED sqlautocode will fail (sqlite_sequence issue) · Issue #30 · unalloc/sqlautocode
X Title: For an sqlite table with a primary key that is AUTOINCREMENTED sqlautocode will fail (sqlite_sequence issue) · Issue #30 · unalloc/sqlautocode
Description: In sqlite, when you create an autoincremented key, a sqlite_sequence table is created automatically. The problem is that this table has no primary key making sqlalchmey and sqlautocode fail with "sqlalchemy.exc.ArgumentError: Mapper Mapp...
Open Graph Description: In sqlite, when you create an autoincremented key, a sqlite_sequence table is created automatically. The problem is that this table has no primary key making sqlalchmey and sqlautocode fail with "s...
X Description: In sqlite, when you create an autoincremented key, a sqlite_sequence table is created automatically. The problem is that this table has no primary key making sqlalchmey and sqlautocode fail with &q...
Opengraph URL: https://github.com/unalloc/sqlautocode/issues/30
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"For an sqlite table with a primary key that is AUTOINCREMENTED sqlautocode will fail (sqlite_sequence issue)","articleBody":"```\n In sqlite, when you create an autoincremented key, a sqlite_sequence table is created automatically. The problem is that this table has no primary key making sqlalchmey and sqlautocode fail with \"sqlalchemy.exc.ArgumentError: Mapper Mapper|Temporal|sqlite_sequence could not assemble any primary key columns for mapped table 'sqlite_sequence'\".\n\n The bigger problem is, however, that when you're trying to generate a declarative model (using the -d flag), the table filtering option is not working - or more accurately is not even handled.\n\nSimple schema:\nCREATE TABLE builds (\n id INTEGER PRIMARY KEY AUTOINCREMENT,\n repository TEXT,\n revision TEXT,\n );\n\nAnd try:\nsqlautocode -d -t builds sqlite:///builds.db\n\nI've attached a superficial fix for whoever needs it (python 2.6)\n\n```\n\nOriginal issue reported on code.google.com by `catalin....@gmail.com` on 26 Dec 2010 at 8:52\n","author":{"url":"https://github.com/GoogleCodeExporter","@type":"Person","name":"GoogleCodeExporter"},"datePublished":"2015-12-02T03:31:35.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/30/sqlautocode/issues/30"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:0aee7f6d-0bac-3a78-cf6b-09ade9ff0e48 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E438:EB239:A0D04:CC090:69911E8E |
| html-safe-nonce | 19a12f0db86ecb328960fa6fd40c8476e9b7d5297967175386a005c0602b6d71 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNDM4OkVCMjM5OkEwRDA0OkNDMDkwOjY5OTExRThFIiwidmlzaXRvcl9pZCI6IjI4ODUzMDM5MDEwMjM3MDY3NjYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 16a930b5a0e79bfc460a207389c14ddad38265b5b10da8348a2886d44869cca1 |
| hovercard-subject-tag | issue:119859503 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/unalloc/sqlautocode/30/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6d7c294e61d98bf3debae08f11432871398b577de89504db2a1723c00b40071c/unalloc/sqlautocode/issues/30 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6d7c294e61d98bf3debae08f11432871398b577de89504db2a1723c00b40071c/unalloc/sqlautocode/issues/30 |
| og:image:alt | In sqlite, when you create an autoincremented key, a sqlite_sequence table is created automatically. The problem is that this table has no primary key making sqlalchmey and sqlautocode fail with "s... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | GoogleCodeExporter |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| go-import | github.com/unalloc/sqlautocode git https://github.com/unalloc/sqlautocode.git |
| octolytics-dimension-user_id | 2229516 |
| octolytics-dimension-user_login | unalloc |
| octolytics-dimension-repository_id | 47234827 |
| octolytics-dimension-repository_nwo | unalloc/sqlautocode |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 47234827 |
| octolytics-dimension-repository_network_root_nwo | unalloc/sqlautocode |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 848bc6032dcc93a9a7301dcc3f379a72ba13b96e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width