读取MySQL、Postgres、Sqlite、Redshift、Clickhouse

从以上数据库中读取数据,请先安装connector-x

$  pip install connectorx>=0.2.0a3
import polars as pl

conn = "postgres://username:password@server:port/database"
query = "SELECT * FROM foo"

pl.read_sql(query, conn)