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

Unable to use another env variable (zsh: unknown file attribute: B) #168

Open
Mathieu-R opened this issue Jun 28, 2024 · 1 comment
Open

Comments

@Mathieu-R
Copy link

Mathieu-R commented Jun 28, 2024

I'm trying to run kysely-codegen with another env variable since DATABASE_URL is already set in my .bashrc for another project.

So I set a DB_URL env variable in a .env file at the root of my project.

# .env

DB_URL=postgres://...

However, running the following command:

npx kysely-codegen --dialect=postgres --env-file=.env --url=env(DB_URL) --out-file=types/db.ts

I get the following error:

zsh: unknown file attribute: B

Seems like a problem with env(DB_URL)

Upvote & Fund

  • We're using Polar.sh so you can upvote and help fund this issue.
  • We receive the funding once the issue is completed & confirmed by you.
  • Thank you in advance for helping prioritize & fund our backlog.
Fund with Polar
@srapport
Copy link

Hi @Mathieu-R, this does not work for me either and have been using a workaround. See #143.

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

No branches or pull requests

2 participants