Commit Graph

266 Commits

Author SHA1 Message Date
lovasoa cc55a3d647 v0.42.0
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
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 (oracle, oracle, Driver=Oracle 21 ODBC driver;Dbq=//127.0.0.1:1521/FREEPDB1;Uid=root;Pwd=Password123!) (push) Has been cancelled
CI / test (postgres, odbc, Driver=PostgreSQL Unicode;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, duckdb) (push) Has been cancelled
CI / docker_build (linux/amd64, minimal) (push) Has been cancelled
CI / docker_build (linux/arm/v7, minimal) (push) Has been cancelled
CI / docker_build (linux/arm64, duckdb) (push) Has been cancelled
CI / docker_build (linux/arm64, minimal) (push) Has been cancelled
CI / docker_push (duckdb) (push) Has been cancelled
CI / docker_push (minimal) (push) Has been cancelled
2026-01-17 16:18:57 +01:00
lovasoa 01391715a0 cleanup oidc tests deps 2025-12-12 00:55:08 +01:00
lovasoa 01102d76c2 add tests for the oidc code 2025-12-12 00:25:30 +01:00
lovasoa 730d8ca8a0 update odbc sys 2025-12-07 13:57:19 +01:00
lovasoa 6c35de7cdc updated sql parser
https://github.com/apache/datafusion-sqlparser-rs/blob/main/changelog/0.60.0.md
2025-12-07 13:52:55 +01:00
lovasoa b9f5864d18 update dependencies 2025-12-07 10:14:59 +01:00
lovasoa 4624f47c90 v0.40.1 2025-11-29 01:15:28 +01:00
lovasoa 681c884f71 Fix compatibility with Auth0 for OpenID-Connect authentification.
See https://github.com/ramosbugs/openidconnect-rs/issues/23
2025-11-29 01:10:43 +01:00
Ophir LOJKINE e93056e6d8 Add sqlpage.set_variable(name, value) function and update docs (#1124)
* feat: Add sqlpage.set_variable function

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

* Refactor: Fix set_variable serialization and update tests

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

* fix tests: no json_extract on mssql

* Refactor: Update URLParameters handling in set_variable function

- Replaced serde_json::Map with a custom URLParameters struct for better management of URL parameters.
- Introduced methods for handling single and vector values in URLParameters.
- Updated tests to reflect changes in the set_variable function's behavior.

* cargo fmt

* clippy

* retsore set var test

* remove redundant test

* ensure set_variable only takes into account GET variables, not SET

* factor url parameter setting code

* v0.40

* sqlpage.set_variable links to "?" when no parameter is present

- Renamed URLParameters module for clarity and removed the deprecated url_parameter_deserializer.
- Updated the set_variable function to return parameters directly instead of appending to a URL.
- Adjusted related function calls to reflect changes in URL parameter management.

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
2025-11-24 12:55:32 +01:00
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 faa87ed9a8 sqlx 50 2025-11-08 00:40:34 +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 6f96213269 my odbc-sys patch was merged upstream 2025-10-25 23:53:43 +02:00
lovasoa a44341482a changelog + 0.39 2025-10-21 11:39:26 +02:00
lovasoa cc3faba20f fix https://github.com/sqlpage/SQLPage/issues/1055 2025-10-17 21:45:05 +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 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 2f37d2ddd1 add lambda-web feature and update CI to test with odbc-static
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-04 23:18:35 +02:00
lovasoa a95376bfa2 switch back to stable sqlx-oldapi 2025-10-04 22:45:05 +02:00
lovasoa a7ff6d6c12 Update ODBC dependency configuration and CI workflow to use all features 2025-10-04 20:23:42 +02:00
lovasoa 79502ff4d7 iodbc -> unixodbc 2025-10-03 23:11:14 +02:00
lovasoa b8d3f28127 windows build 2025-10-03 23:07:12 +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
Cursor Agent 74fc9e6bb0 Remove unused odbc-sys dependency
Co-authored-by: contact <contact@ophir.dev>
2025-10-02 19:37:02 +00:00
Cursor Agent 186686b6a3 Add odbc feature and conditional odbc-sys dependency
Co-authored-by: contact <contact@ophir.dev>
2025-10-02 15:03:25 +00:00
lovasoa 493dd52a9c Merge branch 'main' into cursor/statically-link-unixodbc-and-update-configurations-df86 2025-10-02 14:40:38 +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 f85b7926a4 sqlx beta6 2025-10-01 21:10:21 +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 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
Cursor Agent 1b71bc4218 Configure rpath for Linux targets and conditionalize odbc-sys
Co-authored-by: contact <contact@ophir.dev>
2025-09-29 17:28:07 +00:00
Cursor Agent 83efc1aae5 Checkpoint before follow-up message
Co-authored-by: contact <contact@ophir.dev>
2025-09-29 15:32:49 +00: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
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 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 17c117f07e Update dependencies and version
The following crates have been updated: - async-lock: 3.4.0 -> 3.4.1 -
event-listener: 5.4.0 -> 5.4.1 - polling: 3.9.0 -> 3.10.0 - sqlpage:
0.36.0 -> 0.36.1
2025-08-04 00:37:14 +02:00
lovasoa 88e55aa636 Fix: PostgreSQL money values show as 0.0
The regression was introduced in v0.36.0.

fixes https://github.com/sqlpage/SQLPage/issues/983
2025-08-04 00:35:16 +02:00
lovasoa 1860aa8433 v0.36 2025-07-27 23:08:12 +02:00
lovasoa 6e4227381f update sql parser 2025-07-26 23:43:25 +02:00