Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,13 @@ jobs:
with:
shared-key: rust-sqlpage-proj-test
save-if: ${{ github.ref == 'refs/heads/main' }}
- run: sudo apt-get update && sudo apt-get install -y unixodbc-dev
- run: cargo fmt --all -- --check
- run: cargo clippy --all-targets --all-features -- -D warnings
- name: Prepare and check official website
run: npm run site:test
- name: Check the configuration schema against Serde
run: cargo test --locked --features config-schema --test mod configuration_docs
- name: Upload prepared website
uses: actions/upload-artifact@v7
with:
Expand Down
3 changes: 2 additions & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ Update the existing documentation page or its authored source under
`examples/official-site/content/` for changed behavior.

Build and preview the official site with the commands in its [README](./examples/official-site/README.md).
Update `configuration.md` for configuration changes.
Document server settings on `AppConfig`, where the site build reads them.
Update `configuration.md` for setup changes.

Add a concise CHANGELOG.md entry only for user-visible changes to SQLPage itself,
and never edit an already tagged release. Be careful: sometimes a tiny subdependency
Expand Down
5 changes: 3 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,5 +116,6 @@ seed and the site's checked-in migrations.

Run `npm run site` to preview changes using the same site build as deployment.

Update [configuration.md](./configuration.md) for configuration changes and
[CHANGELOG.md](./CHANGELOG.md) for user-visible changes in an unreleased version.
Document settings on `AppConfig` and keep setup instructions in
[configuration.md](./configuration.md). Update [CHANGELOG.md](./CHANGELOG.md)
for user-visible changes to SQLPage in an unreleased version.
25 changes: 25 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ tokio = { version = "1.24.1", features = ["macros", "rt", "process", "sync"] }
tokio-stream = "0.1.9"
anyhow = "1"
serde = "1"
schemars = { version = "1", optional = true }
serde_json = { version = "1.0.82", features = [
"preserve_order",
"raw_value",
Expand Down Expand Up @@ -137,6 +138,7 @@ opentelemetry-semantic-conventions = { version = "0.33", features = ["semconv_ex

[features]
default = []
config-schema = ["dep:schemars"]
odbc-static = ["odbc-sys", "odbc-sys/vendored-unix-odbc"]
lambda-web = [
"dep:actix-http",
Expand All @@ -151,3 +153,7 @@ actix-http = "3"
tempfile = "3"
tokio = { version = "1", features = ["rt", "time", "test-util"] }

[[example]]
name = "configuration_reference"
path = "examples/configuration_reference.rs"
required-features = ["config-schema"]
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ select

## Supported databases

- [SQLite](https://www.sqlite.org/index.html), including the ability to [load extensions](./configuration.md) such as *Spatialite*.
- [SQLite](https://www.sqlite.org/index.html), including the ability to [load extensions](https://sql-page.com/configuration#sqlite_extensions) such as *Spatialite*.
- [PostgreSQL](https://www.postgresql.org/), and other compatible databases such as *YugabyteDB*, *CockroachDB* and *Aurora*.
- [MySQL](https://www.mysql.com/), and other compatible databases such as *MariaDB* and *TiDB*.
- [Microsoft SQL Server](https://www.microsoft.com/en-us/sql-server), and all compatible databases and providers such as *Azure SQL* and *Amazon RDS*.
Expand Down Expand Up @@ -218,7 +218,7 @@ You still need to install or provide the database-specific ODBC driver for the d
- Find your [connection string](https://www.connectionstrings.com/).
- It will look like this: `Driver=/opt/snowflake_odbc/lib/libSnowflake.so;Server=xyz.snowflakecomputing.com;Database=MY_DB;Schema=PUBLIC;UID=my_user;PWD=my_password`
- It must reference the path to the database driver you installed earlier, plus any connection parameter required by the driver itself. Follow the instructions from the driver's own documentation.
- Use it in the [DATABASE_URL configuration option](./configuration.md)
- Use it in the [DATABASE_URL configuration option](https://sql-page.com/configuration#database_url)


## How it works
Expand Down
Loading
Loading