duckdb / duckdb_mysql

https://duckdb.org/docs/extensions/mysql
MIT License
55 stars 13 forks source link

Fallback to reading configuration from environment variables #52

Closed Mytherin closed 8 months ago

Mytherin commented 8 months ago

Partially implements #41

This PR adds support for reading configuration from MySQL standard environment variables. If no option is provided explicitly, we try to read it from the following environment variables instead:

Setting Env
host MYSQL_HOST
user MYSQL_USER
password MYSQL_PWD
database MYSQL_DATABASE
port MYSQL_TCP_PORT
socket MYSQL_UNIX_PORT