Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@rphlmr
Copy link
Owner

@rphlmr rphlmr commented Nov 18, 2024

Fixes #27

Description

  • Given this drizzle.config.ts
export default defineConfig({
  schema: `db/schemas`,
});
  • And this folder struct:
└── schemas
    ├── index.ts
    ├── posts.ts
    └── users.ts
  • Whith barrel export of schemas in index.

When extracting Drizzle objects, we had duplicates (from index and from the other files in /schemas, captured by the glob defined in the config.schema).

Type of change

Please mark relevant options with an x in the brackets.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also
list any relevant details for your test configuration

Reviewer checklist

You have tested the changes and they are working as expected.

Screenshots (if appropriate):

Questions (if appropriate):

@rphlmr rphlmr merged commit 88a0628 into main Nov 18, 2024
@rphlmr rphlmr deleted the fix-schema-import branch November 18, 2024 09:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Pnpm dlx Drizzle Visualizer is failing

2 participants