Skip to content

feat: an DSN connection string format #1424

@flaneur2020

Description

@flaneur2020

In the database drivers of different languages, they usually take a DSN format to connect different database backends.

Like the followings:

  • JDBC: jdbc:clickhouse://xxx.myclickhouse.intra.com:8123
  • Go SQL Driver: user:password@tcp(127.0.0.1:3306)/db?charset=utf8mb4

Maybe we could also get a DSN like format in opendal? The DSN format may have some benefits:

  • allows connecting to different providers in a unified connection format, every one speaks one URL-like string
  • easy to write config files, just one-liner instead of multiple parameters
  • easy to embed in program logic, likewise SELECT * FROM read_parquet("s3://mybucket.com/file.parquet?token_file=/var/token/access-token")

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions