{"id":19577370,"url":"https://github.com/hangxingliu/node-sqlite-ddl-parser","last_synced_at":"2025-08-05T12:12:07.185Z","repository":{"id":57368319,"uuid":"161893311","full_name":"hangxingliu/node-sqlite-ddl-parser","owner":"hangxingliu","description":"⛓ A SQLite DDL parser module","archived":false,"fork":false,"pushed_at":"2018-12-15T10:27:54.000Z","size":27,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-04T06:51:29.308Z","etag":null,"topics":["ddl","parser","sqlite3"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hangxingliu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-12-15T10:17:58.000Z","updated_at":"2018-12-15T10:27:56.000Z","dependencies_parsed_at":"2022-09-05T20:51:23.651Z","dependency_job_id":null,"html_url":"https://github.com/hangxingliu/node-sqlite-ddl-parser","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/hangxingliu/node-sqlite-ddl-parser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hangxingliu%2Fnode-sqlite-ddl-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hangxingliu%2Fnode-sqlite-ddl-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hangxingliu%2Fnode-sqlite-ddl-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hangxingliu%2Fnode-sqlite-ddl-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hangxingliu","download_url":"https://codeload.github.com/hangxingliu/node-sqlite-ddl-parser/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hangxingliu%2Fnode-sqlite-ddl-parser/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268894856,"owners_count":24324940,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-05T02:00:12.334Z","response_time":2576,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ddl","parser","sqlite3"],"created_at":"2024-11-11T07:06:07.185Z","updated_at":"2025-08-05T12:12:07.158Z","avatar_url":"https://github.com/hangxingliu.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SQlite DDL Parser\n\n[![NPM version][npm-image]][npm-url]\n[![Build status][travis-image]][travis-url]\n\n[npm-image]: https://img.shields.io/npm/v/sqlite-ddl-parser.svg\n[npm-url]: https://npmjs.org/package/sqlite-ddl-parser\n[travis-image]: https://travis-ci.org/hangxingliu/node-sqlite-ddl-parser.svg?branch=master\n[travis-url]: https://travis-ci.org/hangxingliu/node-sqlite-ddl-parser\n\nA SQLite DDL([Data definition language](https://en.wikipedia.org/wiki/Data_definition_language)) parser module.\n\nThis module is built on [codeschool/sqlite-parser](https://github.com/codeschool/sqlite-parser)\n\n## Install\n\n``` bash\nnpm install sqlite-ddl-parser\n```\n\n## Example\n\n``` javascript\nconst fs = require('fs');\nconst SQLiteDDLParser = require('sqlite-ddl-parser');\n\nconsole.log(SQLiteDDLParser.parse(fs.readFileSync('./test/sql/contacts.sql'))); \n/*\n{\n    \"tables\": [{\n\t\t\"name\": \"contacts\",\n\t\t\"columns\": [{\n\t\t\t\"name\": \"contact_id\",\n\t\t\t\"type\": \"integer\",\n\t\t\t\"notNull\": false,\n\t\t\t\"unique\": false\n\t\t},{\n\t\t\t\"name\": \"first_name\",\n\t\t\t\"type\": \"text\",\n\t\t\t\"notNull\": true,\n\t\t\t\"unique\": false\n\t\t},{\n\t\t\t\"name\": \"last_name\",\n\t\t\t\"type\": \"text\",\n\t\t\t\"notNull\": true,\n\t\t\t\"unique\": false\n\t\t},{\n\t\t\t\"name\": \"email\",\n\t\t\t\"type\": \"text\",\n\t\t\t\"notNull\": true,\n\t\t\t\"unique\": true\n\t\t},{\n\t\t\t\"name\": \"phone\",\n\t\t\t\"type\": \"text\",\n\t\t\t\"notNull\": true,\n\t\t\t\"unique\": true\n\t\t}],\n\t\t\"primaryKeys\": [\n\t\t\t\"contact_id\"\n\t\t]\n\t}]\n}\n*/\n\n```\n\n\n## Author\n\n[Liu Yue](https://github.com/hangxingliu)\n\n## License\n\n[GPL-3.0](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhangxingliu%2Fnode-sqlite-ddl-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhangxingliu%2Fnode-sqlite-ddl-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhangxingliu%2Fnode-sqlite-ddl-parser/lists"}