**PgSanity checks the syntax of Postgresql SQL files.**
It does this by leveraging the ecpg command which is traditionally
used for preparing C files with embedded sql for compilation.
However, as part of that preparation, ecpg checks the embedded SQL
statements for syntax errors using the exact same parser that is
in PostgreSQL.
So the approach that PgSanity takes is to take a file that has a
list of bare SQL in it, make that file look like a C file with
embedded SQL, run it through ecpg and let ecpg report on the syntax
errors of the SQL.
Raw data
{
"_id": null,
"home_page": "http://github.com/markdrago/pgsanity",
"name": "pgsanity",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "",
"author": "Mark Drago",
"author_email": "markdrago@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/45/70/d9ce2d8a93a7b755b09871125768c3237f99147472ec6f3ca3237cd22a4d/pgsanity-0.2.9.tar.gz",
"platform": "",
"description": "\n**PgSanity checks the syntax of Postgresql SQL files.**\n\nIt does this by leveraging the ecpg command which is traditionally\nused for preparing C files with embedded sql for compilation.\nHowever, as part of that preparation, ecpg checks the embedded SQL\nstatements for syntax errors using the exact same parser that is\nin PostgreSQL.\n\nSo the approach that PgSanity takes is to take a file that has a\nlist of bare SQL in it, make that file look like a C file with\nembedded SQL, run it through ecpg and let ecpg report on the syntax\nerrors of the SQL.\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Check syntax of sql for PostgreSQL",
"version": "0.2.9",
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "4570d9ce2d8a93a7b755b09871125768c3237f99147472ec6f3ca3237cd22a4d",
"md5": "6ac9b910b867c1a40e003f0939cfda88",
"sha256": "de0bbd6fe4f98bf5139cb5f466eac2e2abaf5a7b050b9e4867b87bf360873173"
},
"downloads": -1,
"filename": "pgsanity-0.2.9.tar.gz",
"has_sig": false,
"md5_digest": "6ac9b910b867c1a40e003f0939cfda88",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 7472,
"upload_time": "2017-04-24T12:30:26",
"upload_time_iso_8601": "2017-04-24T12:30:26.834357Z",
"url": "https://files.pythonhosted.org/packages/45/70/d9ce2d8a93a7b755b09871125768c3237f99147472ec6f3ca3237cd22a4d/pgsanity-0.2.9.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2017-04-24 12:30:26",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "markdrago",
"github_project": "pgsanity",
"travis_ci": true,
"coveralls": false,
"github_actions": false,
"lcname": "pgsanity"
}