You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Connector type should be extended with an additional dialect property.
It should be a string that represents the SQL dialect that the connector supports.
For example: sqlite, postgresql or mysql
The Database interface should be extended with an additional getDialect method.
It should return the dialect or the connector that the database is using.
This would make integrating db0 with other libraries more straight forward.
I was wondering if these types should also be generic, so that other adapters/drivers could narrow allowing only specific dialects of db0 instances to be provided as dependency, like Database<"sqlite" | "postgresql">.
Describe the feature
The
Connector
type should be extended with an additionaldialect
property.It should be a string that represents the SQL dialect that the connector supports.
For example:
sqlite
,postgresql
ormysql
The
Database
interface should be extended with an additionalgetDialect
method.It should return the dialect or the connector that the database is using.
This would make integrating
db0
with other libraries more straight forward.I was wondering if these types should also be generic, so that other adapters/drivers could narrow allowing only specific dialects of
db0
instances to be provided as dependency, likeDatabase<"sqlite" | "postgresql">
.Related: unjs/unstorage#476
Additional information
The text was updated successfully, but these errors were encountered: