Skip to content
Closed
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
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ 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 test --locked --features config-schema --test mod configuration_docs
- run: cargo clippy --all-targets --all-features -- -D warnings
- name: Prepare official website
run: npm run site:build
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 page or documentation migration for changed behavior. Add a
migration only for new documentation content.

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 options on `AppConfig` where the site build reads them. Keep
setup examples in `configuration.md`.

Add a concise CHANGELOG.md entry only for user-visible changes, and never edit
an already tagged release.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## unreleased

- The [configuration reference](https://sql-page.com/configuration) now lists server settings and their defaults directly from SQLPage. Search for a setting by name or link to it with a URL such as `/configuration#listen_on`.
- The first-website tutorial now lets you choose an installation target, copy a command, or download an archive for macOS, Windows, Linux, or AWS Lambda.
- Missing component pages on the official site return HTTP 404 and link to the catalog. Action buttons in colored alerts stay readable.
- The `shell` sidebar now uses `navbar_title` and preserves the colors of the supplied logo in dark mode.
Expand Down
3 changes: 2 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,5 +107,6 @@ Deployment recreates the website's database from the site's SQL migrations.

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

Update [configuration.md](./configuration.md) for configuration changes and
Document server options on the Rust fields of [`AppConfig`](./src/app_config.rs).
Keep setup examples in [configuration.md](./configuration.md). Update
[CHANGELOG.md](./CHANGELOG.md) for user-visible changes 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.

8 changes: 8 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,9 @@ actix-http = "3"
tempfile = "3"
tokio = { version = "1", features = ["rt", "time", "test-util"] }

[[example]]
name = "export_config_schema"
# The Docker build omits this source, so Cargo cannot infer the path.
path = "examples/export_config_schema.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