Skip to content
Merged
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
4 changes: 0 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ permissions:
jobs:
build:
runs-on: ubuntu-latest
env:
SQLX_OFFLINE: "true"
steps:
- name: Checkout
uses: actions/checkout@v6
Expand All @@ -39,8 +37,6 @@ jobs:

lint:
runs-on: ubuntu-latest
env:
SQLX_OFFLINE: "true"
steps:
- name: Checkout
uses: actions/checkout@v6
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ permissions:
jobs:
check:
runs-on: ubuntu-latest
env:
SQLX_OFFLINE: "true"
steps:
- name: Checkout
uses: actions/checkout@v6
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

15 changes: 2 additions & 13 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,22 +34,12 @@ cargo fmt --all --check # format check

Or use the justfile: `just build`, `just test`, `just check`, `just install`

### SQLx metadata

After changing any `sqlx::query!`, `query_as!`, or `query_scalar!` macro, run
`just sqlx-prepare` and commit the `.sqlx` changes. Do not hand-edit `.sqlx`
files.

`just sqlx-prepare` validates SQLite macros against the local fixture schema.
Keep `scripts/sqlx-sqlite-schema.sql` in sync with SQLite macro-selected
columns.

## Git Hooks (lefthook)

This repo uses lefthook for git hooks. Install once with `lefthook install` (or `just setup`).

- **pre-commit** runs `cargo fmt --all --check` — validates formatting (does NOT auto-fix). If it fails, run `cargo fmt --all` then re-commit.
- **pre-push** runs the workspace/all-target/all-feature SQLx offline check, clippy with warnings denied, and cargo deny. Requires `cargo install cargo-deny`.
- **pre-push** runs the workspace/all-target/all-feature check, clippy with warnings denied, and cargo deny. Requires `cargo install cargo-deny`.

Manual usage:

Expand All @@ -60,13 +50,12 @@ lefthook run pre-push # run pre-push hooks

## Key Dependencies

- **powersync** — local path dependency (SQLite sync engine)
- **powersync** — Guion fork of the SQLite sync engine
- **rusqlite** — SQLite with bundled + load_extension
- **clap** — CLI framework (derive macros)
- **tokio** — async runtime
- **reqwest** — HTTP client (auth + PostgREST backend)
- **serde/serde_json** — serialization
- **sqlx** — typed local SQLite access pending migration to the shared PowerSync pool

## Project Conventions

Expand Down
Loading