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

Problem connecting to CrateDB Cloud #125

Closed
amotl opened this issue May 29, 2024 · 1 comment
Closed

Problem connecting to CrateDB Cloud #125

amotl opened this issue May 29, 2024 · 1 comment

Comments

@amotl
Copy link
Member

amotl commented May 29, 2024

Problem

@matkuliak reported at crate/cratedb-guide#86 (comment) that influxio might not be ready to connect to CrateDB Cloud just yet.

Observations

When using an SQLAlchemy URL like [1], influxio will still connect using an URL like [2].

[1] crate://admin:[email protected]:4200/testdrive/demo?ssl=true
[2] crate://admin:[email protected]:4200/?schema=testdrive

Thoughts

The flaw is probably located here.

# Special handling for SQLite and CrateDB databases.
self.dburi = str(url.with_query(None))
if url.scheme == "crate":
url = url.with_path("")
if self.database:
url = url.with_query({"schema": self.database})
self.dburi = str(url)

@amotl
Copy link
Member Author

amotl commented May 31, 2024

The problem has been fixed.

@amotl amotl closed this as completed May 31, 2024
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

1 participant