Skip to content

Support HTTPS URLs when specifying a SqlAlchemy URI #116

@SStorm

Description

@SStorm

There are two ways to specify a server to connect when using SqlAlchemy. The official one recommended by the crate docs is to use the connect_args like this:

engine = sa.create_engine(
     'crate://',
     connect_args={
         'servers': ['198.51.100.1:4200', '198.51.100.2:4200'],
         'verify_ssl_cert': True,
         'ca_cert': '<PATH_TO_CA_CERT>',
     }
)

There is a simpler way to do this, by using just the URI:

crate://user:pass@host

however, in this case the crate driver defaults to HTTP, and there is no way to specify that it is a HTTPS connection. This should be supported for ease of use.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions