摘要: use arrow_odbc::{odbc_api::Environment, OdbcReader}; const CONNECTION_STRING: &str = "Driver={PostgreSQL ANSI(x64)}; Server=127.0.0.1;Port=5433; UID=p 阅读全文
posted @ 2022-09-30 16:33 CrossPython 阅读(39) 评论(0) 推荐(0)
摘要: 下载地址: https://www.postgresql.org/ftp/odbc/versions/msi/ 连接字符串,一般的结构是: Driver={PostgreSQL ODBC Driver(UNICODE)};server=127.0.0.1;port=5432;database=数据库 阅读全文
posted @ 2022-09-30 16:21 CrossPython 阅读(2242) 评论(0) 推荐(0)
摘要: extern crate r2d2; use std::{thread, io::Read}; use r2d2_postgres::{postgres::{NoTls, GenericClient, SimpleQueryRow, SimpleQueryMessage}, PostgresConn 阅读全文
posted @ 2022-09-30 16:04 CrossPython 阅读(64) 评论(0) 推荐(0)
摘要: #[tokio::main] async fn main()->Result<()> { let m = read_excel("abc.xlsx", 1, "Sheet1").unwrap(); let ctx = SessionContext::new(); ctx.register_table 阅读全文
posted @ 2022-09-30 10:41 CrossPython 阅读(21) 评论(0) 推荐(0)