1.5 KiB
1.5 KiB
Session State
Current Task
Build notion-sql, a Rust CLI for running SQL-style CRUD statements against Notion databases through the Notion REST API.
Branch
feature/no-issue-notion-sql-cli
Ticket
None, per user direction.
Important Decisions
- Parse real SQL using
sqlparser; do not hand-write SQL parsing. - Resolve Notion databases by ID or friendly name.
- Introspect database schema before translating filters or write payloads.
- Mutating statements default to dry-run and require
--apply. - Use
NOTION_TOKENfor auth andNotion-Version: 2022-06-28. - Homebrew tap owner is
KofTwentyTwo; release config targetsKofTwentyTwo/homebrew-tap. HOMEBREW_TAP_TOKENis present onKofTwentyTwo/notion-sqlActions secrets.
Verification Plan
cargo fmtcargo testcargo build --release
Current Verification Status
cargo fmt --checkpassed.cargo clippy --all-targets --all-features -- -D warningspassed.cargo test --all-targets --all-featurespassed with 34 tests.cargo build --releasepassed.nix run nixpkgs#actionlint -- .github/workflows/ci.yml .github/workflows/release.ymlpassed.dist generate --checkpassed.dist plan --tag v0.1.0passed and includes shell installer, Homebrew formula, checksums, and the four configured target archives.git ls-remote --heads originpassed after earlier SSH-agent failure.gh repo view KofTwentyTwo/homebrew-tapconfirmed the tap exists and is public.gh secret list --repo KofTwentyTwo/notion-sqllistsHOMEBREW_TAP_TOKEN.