bolajiwahab / bolajiwahab/pg_schema_dump_parser

Parsing with pglast instead of regex

Open
#6 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
6
Forks
2
PR merge metrics
No merged PRs in 30d

Description

Currently, parsing of schema dumps into various objects is achieved with the usage of regex. This is not maintainable on the long run.

[pglast](https://github.com/lelit/pglast) is a PostgreSQL Languages AST, it supports visitor patterns and streamlines the process of parsing of schema dumps into various objects.

Also, we should use this opportunity to make the project more structured and installable through the usual pypi repository.

Contributor guide

No contributing guide indexed for this repository

Research direction

No files, tests, or entry points are named. Start by locating the current regex-based schema-dump parsing and reviewing pglast's visitor patterns, then determine the packaging structure needed for PyPI installation. Done means the parsing approach and project installation are migrated as described without relying on the existing regex workflow.

Written by the indexing model from the issue text.

Assessment

Tech stack
postgresql, python
Domain
build-system, databases
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.