Use * from path not working

I have tried so many ways using single quote Double qoutes / but anyhow “use * from” not working. Could you please check.

Thank you

Hi @Ashish_Bajpai,

Although DBML has supported multifile and importing via use (as the DBML doc details), tools like dbdiagram, CLI, etc. haven’t integrate them yet. We’re working on shipping this as this is quite a large effort.

Sorry for the confusion. We will notify you when the multifile feature is fully ready.

Hi,
This is related to dbml diagrams.
use * from ‘./base’
Inserting part is when I do
use * from ‘./main’ is not showing error but still doesn’t work. Even if I have file name as main too.
Thanks

Hi @Ashish_Bajpai,

Can I ask you where you’re using the use * syntax?

  1. In VSCode dbdiagram extension.
  2. In https://dbdiagram.io/
  3. In https://dbml.dbdiagram.io/playground/
  4. Using dbdocs/dbdiagram-cli
  5. Using dbml-cli

Currently, only (3) and (5) will correctly work with the use * syntax.

use * from ‘./main’ is not showing error but still doesn’t work.

If you add this to dbdiagram, it will not show errors, as the current opened diagram is currently treated as a file named main and this is treated as a self import. It currently cannot do anything useful though.

Hope that answers your question.