Let's say you want to add an existing eval extension. Here is how to submit it to the incubator:
-
Fork the incubator branch.
-
Add some tests:
-- test/eval.sql
.load dist/eval
select '01', eval('select 42') = '42';
- Add download step to the Makefile:
download-external:
curl -L https://github.com/sqlite/sqlite/raw/master/ext/misc/eval.c --output src/eval.c
- Add compilation and test steps to the Makefile:
compile-linux:
make compile-linux-extension name=eval
compile-windows:
make compile-windows-extension name=eval
compile-macos:
make compile-macos-extension name=eval
test-all:
make test suite=eval
- Compile for you OS and run tests to verify that everything is OK:
make prepare-dist
make download-sqlite
make download-external
make compile-linux-extension name=eval
make test suite=eval
- Submit a pull request with a short description:
eval
Dinamically runs arbitrary SQL statements.
Created by D. Richard Hipp, Public Domain.