Skip to content

Latest commit

 

History

History
56 lines (39 loc) · 1.19 KB

external.md

File metadata and controls

56 lines (39 loc) · 1.19 KB

Submit a third-party extension

Let's say you want to add an existing eval extension. Here is how to submit it to the incubator:

  1. Fork the incubator branch.

  2. Add some tests:

-- test/eval.sql

.load dist/eval

select '01', eval('select 42') = '42';
  1. 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
  1. 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
  1. 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
  1. Submit a pull request with a short description:

eval

Dinamically runs arbitrary SQL statements.

Created by D. Richard Hipp, Public Domain.