Add database API example

This commit is contained in:
Ryan Alder 2020-02-17 15:51:57 -08:00
parent c3b29387fd
commit 2cda6935ab
1 changed files with 9 additions and 0 deletions

9
sample.c Normal file
View File

@ -0,0 +1,9 @@
#include "database.h"
int main() {
struct database_state state;
database_state_init(&state, "data.sqlite");
database_write_active(&state, 1, 1);
database_write_location(&state, 1, 5.0, 5.0);
database_state_free(&state);
}