blob: 720871ca2071734484ce7c6feb3b9ae706e2c4a1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#include <stdio.h>
#include <sqlite3.h>
#include "data.h"
int main() {
Data *data = new_data(":memory:");
bootstrap(data);
for (int x = 0; x < 10000; x++)
insert(data, "LINE X");
LIST *list = select(data);
for (unsigned int x = 0; x < list->size; x++)
printf("This is a line: %s\n", ((Word*)list->list[x])->Line);
list_free(list);
return 0;
}
|