You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
More about testing: see [github actions](./.github/workflows/ci.yml).
14
+
Project structure: see [contribution guide](./CONTRIBUTING.md)
15
+
16
+
NEVER reformat/lint/touch files unrelated to your task. Always run tests/lints/format before stopping when you changed code.
17
+
18
+
### Testing
19
+
20
+
```
21
+
cargo test # tests with inmemory sqlite by default
22
+
```
23
+
24
+
For other databases, see [docker testing setup](./docker-compose.yml)
25
+
26
+
```
27
+
docker compose up -d mssql # or postgres or mysql
28
+
DATABASE_URL='mssql://root:Password123!@localhost/sqlpage' cargo test # all dbms use the same user:pass and db name
29
+
```
30
+
31
+
#### Project Conventions
32
+
33
+
- Components: defined in `./sqlpage/templates/*.handlebars`
34
+
- Functions: `src/webserver/database/sqlpage_functions/functions.rs` registered with `make_function!`.
35
+
- Components and functions are documented in [official website](./examples/official-site/sqlpage/migrations/); one migration per component and per function.
36
+
- tables
37
+
-`component(name,description,icon,introduced_in_version)` -- icon name from tabler icon
-[*DuckDB*](https://duckdb.org/docs/stable/clients/odbc/overview.html), and through it [many other data sources](https://duckdb.org/docs/stable/data/data_sources),
-[*Trino*](https://docs.starburst.io/clients/odbc/odbc-v2.html), and through it [many other data sources](https://trino.io/docs/current/connector.html)
4
14
- Added a new `sqlpage.hmac()` function for cryptographic HMAC (Hash-based Message Authentication Code) operations.
5
15
- Create and verify secure signatures for webhooks (Shopify, Stripe, GitHub, etc.)
6
16
- Generate tamper-proof tokens for API authentication
0 commit comments