Skip to content

Help with snowflake connection string #678

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

Open
juli4nb4dillo opened this issue Mar 28, 2025 · 2 comments
Open

Help with snowflake connection string #678

juli4nb4dillo opened this issue Mar 28, 2025 · 2 comments

Comments

@juli4nb4dillo
Copy link

Folks, I got a snowflake database with a "public" schema (Yes, lowercase enforced "public").

  • If I use this connection string: snowflake://user:password@account/MYDB/public It just says I'm unauthorized (schema doesn't exist)
  • If I use this connection string snowflake://user:password@account/MYDB/"public" it authorizes all right, but then there's an unexplained syntax error down the line:
dbdoc/schema.svg
syntax error in line 1 near 'public'

I've tried "'public'" '"public"' and "\"public\"" but none work.

I believe it might have to do with snowflake assuming any unescaped identifier is uppercase (therefore the authorization error) but the escaping messes with the SQL for exploring the schema.

Is there a combination of escaping that will work?

@k1LoW
Copy link
Owner

k1LoW commented Apr 17, 2025

@juli4nb4dillo
Sorry for the late reply.
Unfortunately, I don't have free access to Snowflake, so I don't have an immediate solution (that's why I'm calling it experimental).

@juli4nb4dillo
Copy link
Author

Thanks @k1LoW , I ended up making a different schema without the lower-case restriction.
I'll be happy to contribute to the snowflake driver, though my experience with Go is very limited.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants
@k1LoW @juli4nb4dillo and others