Commit Graph

13 Commits

Author SHA1 Message Date
lovasoa f31a830945 add links to /extensions-to-sql
it's still hard to get a clear understanding of how variables work in
sqlpage when getting started

https://github.com/sqlpage/SQLPage/issues/1166
2025-12-28 03:06:07 +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
lovasoa 5e723f8e22 fix: missing title in functions documentation 2025-08-28 09:43:57 +02:00
lovasoa 61677ab5b7 landing page links 2025-05-26 01:30:48 +02:00
lovasoa f65f8bcdc2 canonical urlencoded function doc url 2024-11-04 22:53:31 +01:00
lovasoa c2ce9d5aac easier navigation in the functions documentation 2024-11-04 20:49:33 +01:00
lovasoa d01e3a89a5 update sqlpage functions documentation 2024-09-13 15:39:30 +02:00
lovasoa 09e3ef7467 document the sqlpage function parameter rule relaxation 2024-06-27 01:03:41 +02:00
lovasoa 1140734ad5 Many improvements in the official website and the documentation.
Most notably, the documentation now has syntax highlighting on code blocks.
2023-10-18 00:30:20 +02:00
lovasoa 481fd6ff3a remove password from functions docs 2023-07-10 09:06:23 +02:00
lovasoa 30e47fd075 Document component introduction date on the website 2023-07-10 08:54:01 +02:00
lovasoa c1595d2c02 improve authorization flow, http basic auth, and error handling 2023-07-10 02:17:43 +02:00
lovasoa a3b21e0f89 add a new "sqlpage.header" function and improve error handling in functions 2023-07-09 22:56:35 +02:00