Commit 49a381b
committed
feat: add proc_open fallback driver for zero-dependency PHP usage
ext-ffi is no longer required — moved to `suggest` in composer.json.
When FFI is unavailable, the wrapper automatically spawns `anvildb-server`
(a new Rust binary) and communicates via JSON-over-stdin/stdout pipes.
- Add DriverInterface, FFIDriver, ProcessDriver, DriverFactory abstraction
- Add anvildb-server binary (core/src/bin/server.rs) with full command set
- Refactor AnvilDb, Collection, QueryBuilder from \FFI\CData to DriverInterface
- Update release.yml to package anvildb-server alongside the shared library
- Update docs: architecture, ci-cd, wrapper-development, READMEs
Both drivers pass all 22 PHP tests and 50 Rust tests.
Override with ANVILDB_DRIVER=ffi|process or ANVILDB_BIN_PATH env vars.1 parent e13ec2d commit 49a381b
20 files changed
Lines changed: 1770 additions & 273 deletions
File tree
- .github/workflows
- core
- src
- bin
- docs
- wrappers/php
- src
- Collection
- Driver
- Exception
- Query
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| 67 | + | |
67 | 68 | | |
68 | 69 | | |
69 | 70 | | |
| |||
72 | 73 | | |
73 | 74 | | |
74 | 75 | | |
| 76 | + | |
75 | 77 | | |
76 | 78 | | |
77 | 79 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
59 | | - | |
60 | | - | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
61 | 63 | | |
62 | 64 | | |
63 | 65 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
11 | 15 | | |
12 | 16 | | |
13 | 17 | | |
| |||
0 commit comments