Vanderhoof / PyDBML

DBML parser and builder for Python
MIT License
101 stars 12 forks source link

Arrays are not supported #4

Closed aviallon closed 3 years ago

aviallon commented 3 years ago

Specifying varchar[] as a column type doesn't work and results in a syntax error. It is however supported by the most major DBML tool currently available (dbdiagram), and is thus used in many shemas. Perhaps adding it would be nice?

aviallon commented 3 years ago

Never mind, it seems that dbdiagram allows some flexibility over the specification, which states that array types are to be enclosed in quotes, like so "varchar[]".

Vanderhoof commented 3 years ago

Yes, quoted "varchar[]" seems to work fine