ext/duckdb/database.c in duckdb-0.9.1.1 vs ext/duckdb/database.c in duckdb-0.9.1.2
- old
+ new
@@ -35,11 +35,11 @@
static VALUE allocate(VALUE klass) {
rubyDuckDB *ctx = xcalloc((size_t)1, sizeof(rubyDuckDB));
return TypedData_Wrap_Struct(klass, &database_data_type, ctx);
}
-rubyDuckDB *get_struct_database(VALUE obj) {
+rubyDuckDB *rbduckdb_get_struct_database(VALUE obj) {
rubyDuckDB *ctx;
TypedData_Get_Struct(obj, rubyDuckDB, &database_data_type, ctx);
return ctx;
}
@@ -97,11 +97,11 @@
}
return obj;
}
static VALUE duckdb_database_connect(VALUE self) {
- return create_connection(self);
+ return rbduckdb_create_connection(self);
}
/*
* call-seq:
* duckdb.close -> DuckDB::Database
@@ -113,10 +113,10 @@
TypedData_Get_Struct(self, rubyDuckDB, &database_data_type, ctx);
close_database(ctx);
return self;
}
-void init_duckdb_database(void) {
+void rbduckdb_init_duckdb_database(void) {
cDuckDBDatabase = rb_define_class_under(mDuckDB, "Database", rb_cObject);
rb_define_alloc_func(cDuckDBDatabase, allocate);
rb_define_singleton_method(cDuckDBDatabase, "_open", duckdb_database_s_open, -1);
rb_define_singleton_method(cDuckDBDatabase, "_open_ext", duckdb_database_s_open_ext, -1);
rb_define_private_method(cDuckDBDatabase, "_connect", duckdb_database_connect, 0);