r-dbi / RMariaDB

An R interface to MariaDB
https://rmariadb.r-dbi.org
Other
130 stars 39 forks source link

feat: Connections now inherit from `"MySQLConnection"` if a MySQL server is detected (server version < 10.0). The new `mysql` argument to `dbConnect()` allows overriding the autodetection #303

Closed krlmlr closed 1 year ago

krlmlr commented 1 year ago

to support declaring that the backend database is MySQL.

krlmlr commented 1 year ago

We could also use mysql_get_server_version() to try to infer automatically,https://dev.mysql.com/doc/c-api/8.0/en/mysql-get-server-version.html .

krlmlr commented 1 year ago

Autodetection works beautifully. The mysql argument now has moved to dbConnect(). I also don't think there's a conflict with the RMySQL package because I'm using the constructor functions returned by setClass() .