Skip to content

Instantly share code, notes, and snippets.

@Ironlenny
Ironlenny / meta_db.c
Created October 21, 2016 21:43
The database driver
#include "meta_db.h"
#include <stdbool.h>
#include <lmdb.h>
#include <stdio.h>
int meta_max_dbs = 0;
int meta_open(const char *file, unsigned long db_name, bool create,
MDB_env **env, MDB_dbi *dbi)
{