sqlite-loadable 0.0.6-alpha.6

A framework for building SQLite extensions in Rust
Documentation
#include "sqlite3.h"
#include "hello.h"
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <assert.h>

int main(int argc, char *argv[]) {
  int rc = SQLITE_OK;
  sqlite3 *db;
  sqlite3_stmt *stmt;

  rc = sqlite3_open(":memory:", &db);
  assert(rc == SQLITE_OK);

  printf("a\n");
  rc = sqlite3_hello_init(db, NULL, NULL);
  printf("b\n");
  assert(rc == SQLITE_OK);
  printf("c\n");

  rc = sqlite3_prepare_v2(db, "SELECT hello('asdf')", -1, &stmt, NULL);
  assert(rc == SQLITE_OK);
  rc = sqlite3_step(stmt);
  assert(rc == SQLITE_ROW);

  assert(strcmp((const char *) sqlite3_column_text(stmt, 0), "hello, asdf!") == 0);

  printf("✅ demo.c ran successfully. \n");

  sqlite3_finalize(stmt);
  sqlite3_close(db);
  return 0;
}