Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 634 Bytes

README.md

File metadata and controls

30 lines (20 loc) · 634 Bytes

Sqlite example

Example to demonstrate using plectrum with an sqlite database.

To run this example, first you'll need to create the sqlite db from the provided schema. The database/create-db script has been provided for this.

cd database
./create-db

The above command will create an sqlite database located at database/todos.db. Note that this binary file is gitignored.

You may run the binary crate from the current dir as follows,

cargo run

Or from the root of this git repo as follows,

PLECTRUM_SQLITE_DB=examples/sqlite/database/todos.db cargo run -p sqlite