PyDBML icon indicating copy to clipboard operation
PyDBML copied to clipboard

DBML parser and builder for Python

Results 16 PyDBML issues
Sort by recently updated
recently updated
newest added

Ref: https://github.com/holistics/dbml/pull/549 At least postgresql let pk being named, handle that properly Will fix https://github.com/Vanderhoof/PyDBML/issues/34

While working on https://github.com/holistics/dbml/pull/549 I discovered that PyDBML seems to fail if name is set on an index, here is a minimum example: ```dbml Table "alembic_version" { "version_num" "character varying(32)"...

Introduces SQL and DBML renderer classes for #38

Hey, thanks for the codebase. I'm making use of it for a project where I need to convert dbml into databricks sql create table statements. Do you want pydbml to...

I would like to add dynamic context to the Table and Columns to better define a data model for metadata. When parsing is working can the unknown items be put...

https://github.com/Vanderhoof/PyDBML/blob/6e0af331cfd039642567b6ee6c8db36a50995c56/pydbml/classes/__init__.py#L6

DBML 3.4.1 [introduced](https://github.com/holistics/dbml/pull/535) changes to how escaping works in strings. PyDBML doesn't support all of it as of yet. Bun since it will only affect weird edge cases, this doesn't...

When converting a DBML enum to sql, the last entry of the generated `CREATE TYPE` statement has a trailing comma, which must not be there for PostgreSQL (see https://www.postgresql.org/docs/current/sql-createtype.html). Executing...

1. For some reason, the classes that need to be used for the creation of schemas from scratch had been moved into an internal `_classes` package. This is not conventional....

This PR makes `Database#tables` and `Table#columns` read-only Tuples to prevent an inconsistent state. Fixes https://github.com/Vanderhoof/PyDBML/issues/67