Sha256: 4c03158384f8db6e1794f05bd2b1d2eea8c93b4b8e3461de0c427168d73ec205

Contents?: true

Size: 647 Bytes

Versions: 132

Compression:

Stored size: 647 Bytes

Contents

#ifndef SQLITE3_DATABASE_RUBY
#define SQLITE3_DATABASE_RUBY

#include <sqlite3_ruby.h>

/* bits in the `flags` field */
#define SQLITE3_RB_DATABASE_READONLY  0x01
#define SQLITE3_RB_DATABASE_DISCARDED 0x02

struct _sqlite3Ruby {
    sqlite3 *db;
    VALUE busy_handler;
    int stmt_timeout;
    struct timespec stmt_deadline;
    rb_pid_t owner;
    int flags;
};

typedef struct _sqlite3Ruby sqlite3Ruby;
typedef sqlite3Ruby *sqlite3RubyPtr;

void init_sqlite3_database();
void set_sqlite3_func_result(sqlite3_context *ctx, VALUE result);

sqlite3RubyPtr sqlite3_database_unwrap(VALUE database);
VALUE sqlite3val2rb(sqlite3_value *val);

#endif

Version data entries

132 entries across 132 versions & 1 rubygems

Version Path
sqlite3-2.5.0-x86-linux-musl ext/sqlite3/database.h
sqlite3-2.5.0-x86-linux-gnu ext/sqlite3/database.h
sqlite3-2.5.0-x86_64-linux-musl ext/sqlite3/database.h
sqlite3-2.5.0-x86_64-linux-gnu ext/sqlite3/database.h
sqlite3-2.5.0-x86_64-darwin ext/sqlite3/database.h
sqlite3-2.5.0-x64-mingw-ucrt ext/sqlite3/database.h
sqlite3-2.5.0 ext/sqlite3/database.h
sqlite3-2.5.0-arm-linux-musl ext/sqlite3/database.h
sqlite3-2.5.0-arm-linux-gnu ext/sqlite3/database.h
sqlite3-2.5.0-arm64-darwin ext/sqlite3/database.h
sqlite3-2.5.0-aarch64-linux-musl ext/sqlite3/database.h
sqlite3-2.5.0-aarch64-linux-gnu ext/sqlite3/database.h
sqlite3-2.5.0.rc1-x86-linux-musl ext/sqlite3/database.h
sqlite3-2.5.0.rc1-x86-linux-gnu ext/sqlite3/database.h
sqlite3-2.5.0.rc1-x86_64-linux-musl ext/sqlite3/database.h
sqlite3-2.5.0.rc1-x86_64-linux-gnu ext/sqlite3/database.h
sqlite3-2.5.0.rc1-x86_64-darwin ext/sqlite3/database.h
sqlite3-2.5.0.rc1-x64-mingw-ucrt ext/sqlite3/database.h
sqlite3-2.5.0.rc1 ext/sqlite3/database.h
sqlite3-2.5.0.rc1-arm-linux-musl ext/sqlite3/database.h