Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: improve type inference for sqlite (typedsql) #4976

Merged
merged 4 commits into from
Aug 12, 2024
Merged

Conversation

Weakky
Copy link
Contributor

@Weakky Weakky commented Aug 8, 2024

@Weakky Weakky requested a review from a team as a code owner August 8, 2024 15:17
@Weakky Weakky requested review from laplab and removed request for a team August 8, 2024 15:17
Copy link
Contributor

github-actions bot commented Aug 8, 2024

WASM Query Engine file Size

Engine This PR Base branch Diff
Postgres 2.061MiB 2.062MiB -931.000B
Postgres (gzip) 822.829KiB 823.474KiB -661.000B
Mysql 2.032MiB 2.033MiB -1.936KiB
Mysql (gzip) 810.530KiB 811.734KiB -1.205KiB
Sqlite 1.926MiB 1.924MiB 1.642KiB
Sqlite (gzip) 769.617KiB 769.109KiB 520.000B

Copy link

codspeed-hq bot commented Aug 8, 2024

CodSpeed Performance Report

Merging #4976 will not alter performance

Comparing feat/typed-sql-sqlite (8ad8a33) with main (d33dcc5)

Summary

✅ 11 untouched benchmarks

@Weakky Weakky added this to the 5.19.0 milestone Aug 9, 2024
Comment on lines +320 to +321
api.query_raw("SELECT 1=1 as `true`, 1=0 AS `false`;", &[])
.assert_single_row(|row| row.assert_int_value("true", 1).assert_int_value("false", 0));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, I always forget that SQLite doesn't return booleans

@jkomyno
Copy link
Contributor

jkomyno commented Aug 12, 2024

Looking at the Wasm Query Engine size table, I see the gzipped size of the packages increased by a few KBs. While this is understandable for SQLite, it can perhaps be avoided for MySQL and PostgreSQL. May you please give it another look in that direction? Thanks!

@Weakky Weakky merged commit 44f753d into main Aug 12, 2024
368 checks passed
@Weakky Weakky deleted the feat/typed-sql-sqlite branch August 12, 2024 13:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants