{"html_url": "https://github.com/simonw/sqlite-utils/issues/358#issuecomment-1257136801", "issue_url": "https://api.github.com/repos/simonw/sqlite-utils/issues/358", "id": 1257136801, "node_id": "IC_kwDOCGYnMM5K7mKh", "user": {"value": 11597658, "label": "luxint"}, "created_at": "2022-09-25T07:15:07Z", "updated_at": "2022-09-25T07:15:59Z", "author_association": "NONE", "body": "HI Simon, \r\n\r\nlooks good, I noticed you wanted to use a regex to detect it, you might be interested in [github.com/iafisher/sqliteparser](https://github.com/iafisher/sqliteparser) which creates an ast of the create table statement, not every option supported yet but i forked it and am adding all the possible options in a create table (and create index) statement. ", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1082651698, "label": "Support for CHECK constraints"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/sqlite-utils/issues/358#issuecomment-996482595", "issue_url": "https://api.github.com/repos/simonw/sqlite-utils/issues/358", "id": 996482595, "node_id": "IC_kwDOCGYnMM47ZR4j", "user": {"value": 11597658, "label": "luxint"}, "created_at": "2021-12-17T06:57:51Z", "updated_at": "2021-12-17T23:24:16Z", "author_association": "NONE", "body": "> This goes beyond the `transform()` method - the curious methods that create new SQL tables could benefit from the ability to add `CHECK` constraints too.\r\n> \r\n> I haven't used these myself, do you have any `CREATE TABLE` examples that use them that you can share?\r\n\r\nI'm using them myself for the first time as well, this is a tutorial of how to use (and change) them in sqlite: https://www.sqlitetutorial.net/sqlite-check-constraint/", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1082651698, "label": "Support for CHECK constraints"}, "performed_via_github_app": null}