Skip to content

Commit ba562a8

Browse files
author
Евгений Балякин
committed
Implement sqliteq v0.1 core
0 parents  commit ba562a8

31 files changed

Lines changed: 3718 additions & 0 deletions

.github/workflows/bench.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Bench
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
bench:
8+
runs-on: ${{ matrix.os }}
9+
strategy:
10+
matrix:
11+
os: [ubuntu-latest, macos-latest]
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: dtolnay/rust-toolchain@stable
15+
- run: cargo run -p sqliteq-cli -- bench --db bench.db --markdown

.github/workflows/ci.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
test:
9+
strategy:
10+
matrix:
11+
os: [ubuntu-latest, macos-latest]
12+
runs-on: ${{ matrix.os }}
13+
steps:
14+
- uses: actions/checkout@v4
15+
- uses: dtolnay/rust-toolchain@stable
16+
- run: cargo fmt --check
17+
- run: cargo clippy --workspace --all-targets -- -D warnings
18+
- run: cargo test --workspace

.github/workflows/release.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Release
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
build:
8+
runs-on: ${{ matrix.os }}
9+
strategy:
10+
matrix:
11+
os: [ubuntu-latest, macos-latest]
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: dtolnay/rust-toolchain@stable
15+
- run: cargo build --release --workspace

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/target/
2+
/*.db
3+
/*.db-shm
4+
/*.db-wal
5+
/bench.db
6+
/sqliteq.db
7+
/SQLITEQ_SPEC.md
8+
.DS_Store

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Changelog
2+
3+
## 0.1.0
4+
5+
- Added the initial SQLite queue core with watcher wakeups and fallback wake tracking
6+
- Added enqueue, claim, ack, nack, batch claim, stats, purge, and transactional enqueue APIs
7+
- Added the `sqliteq` CLI with queue, worker, stats, purge, benchmark, init, and version commands
8+
- Added integration tests and launch documentation

CONTRIBUTING.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Contributing
2+
3+
## Local Setup
4+
5+
```bash
6+
cargo test
7+
cargo fmt --check
8+
cargo clippy --workspace --all-targets -- -D warnings
9+
```
10+
11+
Keep changes small and include a focused test for queue behavior. Benchmarks must report real local measurements and
12+
must include the command used to produce them.

0 commit comments

Comments
 (0)