Connect to fakesnow server from non-Python clients
mainThe fakesnow server accepts any username, password, and account combination via HTTP.
Connection Details:
user:fakepassword:snowaccount:fakesnowhost:<server_host>port:<server_port>protocol:http
Snowflake CLI Configuration:
Add the following to your config.toml:
[connections.fakesnow]
host = "localhost"
port = <port_number>
account = "fakesnow"
user = "fake"
password = "snow"
protocol = "http"Note: You MUST include protocol = "http" for compatibility. Use the connection with snow sql -c fakesnow ....
Java (JDBC) Connection:
Use the following URL format:
jdbc:snowflake://<host>:<port>/?ssl=off&account=fakesnow&db=<database>&schema=<schema>
Important for Java:
- Keep
accountin the URL (required for local hosts). - Run the JVM with
--add-opens=java.base/java.nio=ALL-UNNAMEDto preventExceptionInInitializerErrorwith Arrow.
[connections.fakesnow]
host = "localhost"
port = <port number from server startup>
account = "fakesnow"
user = "fake"
password = "snow"
protocol = "http"