carlos-rian / pysqlx-engine Goto Github PK
View Code? Open in Web Editor NEWPySQLXEngine, a minimalist asynchronous SQL engine.
Home Page: https://github.com/carlos-rian/pysqlx-engine
PySQLXEngine, a minimalist asynchronous SQL engine.
Home Page: https://github.com/carlos-rian/pysqlx-engine
When HTTPX has a timeout is created a raise with a generic error.
Hey guys,
I try to use quaint in a simple benchmark where the database has a lag/delay in response.
So I'm using pg_sleep
to simulate this delay.
But with this command returning a void, Quaint has an error.
In that case, would it be better to deserialize to null?
DB: PostgreSQL
Rust: 1.64.0
Quaint: https://github.com/prisma/quaint
Example:
// query
let sql = "SELECT pg_sleep(0.1);";
// quaint connection
let conn = Quaint::new("postgresql://postgres:postgrespw@localhost:49153").await.unwrap();
// run query
let result = conn.query_raw(sql, &[]).await.unwrap();
Error: Column type 'void' could not be deserialized from the database.
issue link: prisma/quaint#414
Add a tutorial to open and close the connection using the async with
context.
Write the unitest to sync and async engine.
Quaint returns a wrong type when the type is date in the database for MySQL, Quaint returns a datetime.
SQL
SELECT CURRENT_DATE();
SQLX result
2022-12-24
Quaint result
2022-12-24T00:00:00.000Z
issue link: prisma/quaint#427
I ran a query_raw where the PostgreSQL column is of type CIDR or MacAddr but I got this error.
This message is in the src/ast/values.rs file, line 788.
Value in column: 192.168.100.128/25 and 08:00:2b:01:02:03
CIDR
Error querying the database: error deserializing column 24: cannot convert between the Rust type core::option::Option<std::net::ip::IpAddr> and the Postgres type cidr
MacAddr has the same problem
Column type 'macaddr' could not be deserialized from the database.
issue core link: prisma/quaint#416
With pysqlx-core implemented, now let's expose the features and include documentation with example usage.
Problem with arrays for PostgreSQL.
Remove double quotes when values are string.
Create benchmark tests using any driver vs pysqlx-engine
PostgreSQL.
MySQL
SQLite
MS SQL Server
Test Topics
Implement aenter and aexit to open and close the connection using the async with
context.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.