Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Field size in dbml file #644

Closed
akuiteo-dbdocs opened this issue Oct 8, 2024 · 4 comments
Closed

Field size in dbml file #644

akuiteo-dbdocs opened this issue Oct 8, 2024 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@akuiteo-dbdocs
Copy link

Before using the automatic generation of the DBML file for SQL server, I had queries allowing me to generate my file in DBML format.
In these scripts, I retrieved the field type and size, which was very useful when viewing fields in dbdocs.

Example :

Table "dbo"."B_BATCH_PLANIF" {
  "BBPL_ANNEE" numeric(14,2)
  "BBPL_AV_ANNEE" nvarchar(60) [note: 'Mode CRON : Annee(s)']
  "BBPL_AV_HEURE" nvarchar(10) [note: 'Mode CRON : Heures']
}

With “dbdocs db2dbml mssql” I no longer have this information, which is a big loss compared with what I used to produce. Would it be possible to have this data?

Table "dbo"."B_BATCH_PLANIF" {
  "BBPL_ANNEE" numeric
  "BBPL_AV_ANNEE" nvarchar [note: 'Mode CRON : Annee(s)']
  "BBPL_AV_HEURE" nvarchar [note: 'Mode CRON : Heures']
}
@huyleminh01
Copy link
Contributor

Hi @akuiteo-dbdocs,

Thank you for reporting the bug to us.

It maybe a bug related to db2dbml command, we will investigate this issue and get back to you later.

Thanks.

@huyleminh01
Copy link
Contributor

Hi @akuiteo-dbdocs ,

We checked and confirmed that our connector does not fetch the field size (numeric scale, numeric precision, and string length).

So we have released a fixed version in @dbml/[email protected]. We will update it to dbdocs cli later. But you can try dbml cli to test our new fix first.

Thanks.

@huyleminh01
Copy link
Contributor

Hi @akuiteo-dbdocs ,

There is good news: we've just released dbdocs cli v0.13.1 contains this fix 🥳 . Please try it out

@huyleminh01 huyleminh01 self-assigned this Oct 15, 2024
@akuiteo-dbdocs
Copy link
Author

It's work like a charm ! Thanks a lot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants