+
Skip to content

Use ServiceLoader to determine dialects and driver class names #5

Closed
@vincentlauvlwj

Description

@vincentlauvlwj

Use ServiceLoader to determine dialects and driver class names, inspired by Spring Boot's org.springframework.boot.jdbc.DatabaseDriver.

So we don't have to provide the driver and dialect params when creating a Database object:

Database.connect(
    url = "jdbc:mysql://127.0.0.1:3306/ktorm",
    driver = "com.mysql.jdbc.Driver",
    user = "root",
    dialect = MySqlDialect
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载