holistics / holistics/dbml

UUID Marked as a Syntax Error in MySQL Adapter

Open
#544 1 comment 1 reaction 0 assignees View on GitHub
enhancement
Dominant language
JavaScript
Stars
3.7k
Forks
233
Avg merge
1d 23h
Merged PRs (30d)
4

Description

I have begun a new dbdocs project with two legacy MariaDB databases. Currently, there is a column called `api_key` that is of `uuid` datatype and is causing a syntax error:

```sql
`api_key` uuid NOT NULL,
```

```
$ sql2dbml ~/Repos/myhi/db/structure.sql -o ./database.dbml --mysql
ERROR:
You have a syntax error at "structure.sql" line 1899 column 12. no viable alternative at input '...,\n `api_key` uuid'

A complete log can be found in:
/Users/ben/Repos/dbdocs/dbml-error.log
```

I'm wondering it it's possible to update the parser to recognize uuid's?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.