Commit Graph

379 Commits

Author SHA1 Message Date
Ophir LOJKINE f2c8164fee Test postgresql range type decoding (#1097)
* Add support for PostgreSQL range types in SQL to JSON conversion

Co-authored-by: contact <contact@ophir.dev>

* add support for postgres range types

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
2025-11-12 18:05:44 +01:00
lovasoa 8498b76e5f update deps 2025-11-12 10:34:04 +01:00
lovasoa faa87ed9a8 sqlx 50 2025-11-08 00:40:34 +01:00
lovasoa 5588c296c1 Update dependencies in Cargo.lock to latest versions 2025-11-07 21:59:14 +01:00
lovasoa 843d9701ce Update dependencies and version for sqlpage to 0.39.1
- Bump versions of several dependencies including `aho-corasick`, `cc`, `clap`, `icu_collections`, and others to their latest releases.
- Update `Cargo.toml` to reflect the new version of sqlpage.
- Ensure compatibility with updated dependencies and improve overall project stability.
2025-11-03 23:56:21 +01:00
lovasoa 7f7fdd6f57 update deps 2025-10-27 22:49:28 +01:00
lovasoa 6f96213269 my odbc-sys patch was merged upstream 2025-10-25 23:53:43 +02:00
lovasoa be5eb4cd06 fix odbc memory corruption
make it harder to miss such issues in the future thanks to malloc instrumentation on ci

fixes https://github.com/pacman82/odbc-api/issues/793
2025-10-25 01:21:13 +02:00
lovasoa 8690e4d177 update dependencies 2025-10-22 21:21:38 +02:00
lovasoa a44341482a changelog + 0.39 2025-10-21 11:39:26 +02:00
lovasoa f8a47cdea3 changelog 2025-10-21 09:48:33 +02:00
lovasoa f1375615f4 always display line info in errors
https://github.com/sqlpage/SQLPage/issues/1057
2025-10-20 18:27:25 +02:00
lovasoa cc3faba20f fix https://github.com/sqlpage/SQLPage/issues/1055 2025-10-17 21:45:05 +02:00
lovasoa 81d2dd43e3 update deps 2025-10-16 10:18:17 +02:00
lovasoa 9a8bb78f5c v0.38.0
CI / compile_and_lint (push) Has been cancelled
CI / test (mssql, mssql, mssql://root:Password123!@127.0.0.1/sqlpage) (push) Has been cancelled
CI / test (mysql, mysql, mysql://root:Password123!@127.0.0.1/sqlpage) (push) Has been cancelled
CI / test (postgres, odbc, Driver=/usr/lib/x86_64-linux-gnu/odbc/psqlodbcw.so;Server=127.0.0.1;Port=5432;Database=sqlpage;UID=root;PWD=Password123!, true) (push) Has been cancelled
CI / test (postgres, postgres, postgres://root:Password123!@127.0.0.1/sqlpage) (push) Has been cancelled
CI / windows_test (push) Has been cancelled
CI / docker_build (linux/amd64) (push) Has been cancelled
CI / docker_build (linux/arm/v7) (push) Has been cancelled
CI / docker_build (linux/arm64) (push) Has been cancelled
CI / docker_push (push) Has been cancelled
Create Release / Build sqlpage binaries (macOS & Windows) (.exe, , windows-latest, x86_64-pc-windows-msvc) (push) Has been cancelled
Create Release / Build sqlpage binaries (macOS & Windows) (odbc-static, macos-latest, x86_64-apple-darwin) (push) Has been cancelled
Create Release / Build sqlpage binaries (Linux) (push) Has been cancelled
Create Release / Build AWS Lambda Serverless zip image (push) Has been cancelled
Create Release / Create Github Release (push) Has been cancelled
Create Release / Publish to crates.io (push) Has been cancelled
2025-10-14 22:35:23 +02:00
lovasoa 9dfbf42f56 enable arbitrary precision in the internal representation of values
- Enabled arbitrary precision for `serde_json` to handle large numbers without rounding.
- Refactored decimal handling in `sql_to_json.rs` to utilize a new function for converting decimals to JSON format.

Fixes https://github.com/sqlpage/SQLPage/issues/1052
2025-10-14 16:33:10 +02:00
lovasoa 5881ed7f18 update dependencies 2025-10-14 10:57:32 +02:00
lovasoa 68a20ebee2 remove dependency to autotools
https://github.com/pacman82/odbc-sys/pull/76
2025-10-13 10:43:25 +02:00
lovasoa 0757ecc946 update odbc sys 2025-10-12 14:53:27 +02:00
lovasoa 6019ab3d4e update odbc-sys 2025-10-09 16:30:26 +02:00
lovasoa dfeba164b5 update odbc sys 2025-10-07 14:35:41 +02:00
lovasoa c8b38980e2 pin odbc-sys 2025-10-07 09:58:42 +02:00
lovasoa a95376bfa2 switch back to stable sqlx-oldapi 2025-10-04 22:45:05 +02:00
lovasoa 80ef8262e8 update dependencies 2025-10-04 22:37:08 +02:00
lovasoa 25f8385067 make odbc mandatory 2025-10-03 23:00:01 +02:00
lovasoa 515005cac7 truly static iodbc link 2025-10-03 22:50:22 +02:00
lovasoa 6790c50120 deps 2025-10-02 22:39:36 +02:00
lovasoa 361d42ed5a update sqlx 2025-10-02 14:14:38 +02:00
lovasoa 3c6dda30b5 test fixes 2025-10-02 10:51:11 +02:00
lovasoa 080cd75d9b fix decoding of the sql DECIMAL type: integers and floats are now handled separately
we used to decode all decimals as floats
2025-10-01 23:00:03 +02:00
lovasoa a15673f950 update deps 2025-10-01 21:09:47 +02:00
Ophir LOJKINE 625deb973b Add and document sqlpage.hmac function (#1033)
* feat: Add sqlpage.hmac function for cryptographic signing

Co-authored-by: contact <contact@ophir.dev>

* feat: Add sqlpage.hmac function for secure data signing

Co-authored-by: contact <contact@ophir.dev>

* Test HMAC function with RFC vectors and update tests

Co-authored-by: contact <contact@ophir.dev>

* feat: Add sqlpage.hmac() function for secure signatures

Co-authored-by: contact <contact@ophir.dev>

* feat: Add base64 output option to hmac function

Co-authored-by: contact <contact@ophir.dev>

* Refactor hmac function for cleaner output formatting

Co-authored-by: contact <contact@ophir.dev>

* Add webhook HMAC signature validation tests

Co-authored-by: contact <contact@ophir.dev>

* Refactor HMAC function and update SQL examples for clarity and consistency

- Changed function parameters to remove Option types for data and key in the HMAC function.
- Improved SQL documentation and examples for HMAC usage, including clearer descriptions and updated error handling.
- Enhanced test cases for webhook HMAC validation to ensure accurate signature checks and responses.
- Removed obsolete test file for HMAC with null values.

* Update HMAC validation logic to handle NULL values in SQL queries

- Modified conditions in SQL queries to check for NULL values alongside signature mismatches.
- Enhanced documentation on NULL handling for HMAC checks to improve clarity and portability.

* remove debug logging from ci

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
2025-10-01 21:07:36 +02:00
lovasoa ebdac5b29b Update sqlx dependencies to new commit hash and modify SQL queries in CSV data tests for consistency 2025-09-30 17:39:36 +02:00
lovasoa f5a679d449 Update sqlx dependencies to use a new commit hash and modify Snowflake table creation syntax in filesystem.rs 2025-09-30 14:44:25 +02:00
lovasoa b8b90a5a37 Update sqlx dependencies to version 0.6.49-beta.5 in Cargo.toml and Cargo.lock 2025-09-30 10:12:34 +02:00
lovasoa ceac4082cb Update sqlx dependencies to use Git source for sqlx-oldapi in Cargo.toml and Cargo.lock 2025-09-30 01:29:43 +02:00
lovasoa 0a7c4d52ed Update zeroize dependency to version 1.8.2 in Cargo.lock 2025-09-29 22:29:51 +02:00
lovasoa f482154c37 update deps 2025-09-29 21:35:43 +02:00
lovasoa 94c274daec Update sqlx dependencies to version 0.6.49-beta.4 and refactor database interaction in tests for improved clarity and consistency. 2025-09-29 17:03:22 +02:00
lovasoa 1d56f3bfdb fix windows compilation 2025-09-26 16:21:42 +02:00
lovasoa 939e9857fc Update sqlpage and sqlx dependencies, refactor database handling to use SupportedDatabase enum for improved database type management and placeholder generation. 2025-09-26 16:21:42 +02:00
Cursor Agent a1a8120be2 Add ODBC support and update dependencies
This commit introduces support for ODBC databases, allowing users to connect to a wider range of data sources. It also includes updates to various dependencies, ensuring the project is using the latest stable versions and incorporating necessary bug fixes and performance improvements.

Co-authored-by: contact <contact@ophir.dev>
2025-09-26 16:21:42 +02:00
lovasoa ad48c4a6bc Add small SQL parser improvements 2025-09-24 15:36:29 +02:00
lovasoa 0008f5b228 Update dependencies in Cargo.lock to latest versions, remove unused packages, and improve overall package management. 2025-09-19 15:31:18 +02:00
Ophir LOJKINE ddce6896f1 add support for UUID (#1009)
* update deps

* Fix: Decode Postgres UUID values

Also includes: - Upgrade sqlx-oldapi to 0.6.48 - Add uuid feature to
sqlx

fixes https://github.com/sqlpage/SQLPage/issues/1008

* Update sqlx-oldapi dependencies to 0.6.48

* also decode mssql uuid

* Fix: Convert unique identifier to lowercase in test
2025-09-07 23:58:58 +02:00
lovasoa 15c0d2411a chore: update dependencies in Cargo.lock
- Bump versions for several packages including actix-http, bitflags, cc, clap, and others.
- Update checksums to reflect the new versions.
- Ensure compatibility with the latest features and fixes from the updated packages.
2025-08-28 22:50:01 +02:00
lovasoa db536bad90 feat: Add encoding parameter to fetch function
- Adds a new parameter `response_encoding` to the fetch function. - This
parameter allows the user to specify a charset for decoding the response
body. - It supports all standard web encodings, and also `hex` and
`base64`. - If no encoding is specified, the response is decoded as
utf-8, or as base64 if it contains binary data.
2025-08-21 23:27:33 +02:00
lovasoa 6e4e936ddf update dependencies 2025-08-21 17:54:26 +02:00
lovasoa 7f38ec82b4 Bump dependencies
This commit updates the following dependencies: - anyhow - async-trait -
bitflags - brotli - cc - clap - clap_builder - clap_derive - config -
glob - libc - proc-macro2 - regex - regex-syntax - rust-ini -
serde-untagged - syn - thiserror - thiserror-impl - uuid - whoami
2025-08-18 13:37:54 +02:00
lovasoa 7562e5b6f9 Update dependencies in Cargo.lock and CHANGELOG.md for version bumps
CI / compile_and_lint (push) Has been cancelled
CI / test (mssql) (push) Has been cancelled
CI / test (mysql) (push) Has been cancelled
CI / test (postgres) (push) Has been cancelled
CI / windows_test (push) Has been cancelled
CI / docker_build (linux/amd64) (push) Has been cancelled
CI / docker_build (linux/arm/v7) (push) Has been cancelled
CI / docker_build (linux/arm64) (push) Has been cancelled
CI / docker_push (push) Has been cancelled
Create Release / Build sqlpage binaries (macOS & Windows) (.exe, windows-latest, x86_64-pc-windows-msvc) (push) Has been cancelled
Create Release / Build sqlpage binaries (macOS & Windows) (macos-latest, x86_64-apple-darwin) (push) Has been cancelled
Create Release / Build sqlpage binaries (Linux) (push) Has been cancelled
Create Release / Build AWS Lambda Serverless zip image (push) Has been cancelled
Create Release / Create Github Release (push) Has been cancelled
Create Release / Publish to crates.io (push) Has been cancelled
2025-08-09 21:45:40 +02:00