duckdb / duckdb_mysql

MIT License
45 stars 10 forks source link

Fallback to reading configuration from environment variables #52

Closed Mytherin closed 5 months ago

Mytherin commented 5 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