ext/duckdb/appender.c in duckdb-0.9.1.1 vs ext/duckdb/appender.c in duckdb-0.9.1.2
- old
+ new
@@ -283,11 +283,11 @@
static VALUE appender__append_date(VALUE self, VALUE year, VALUE month, VALUE day) {
duckdb_date dt;
rubyDuckDBAppender *ctx;
TypedData_Get_Struct(self, rubyDuckDBAppender, &appender_data_type, ctx);
- dt = to_duckdb_date_from_value(year, month, day);
+ dt = rbduckdb_to_duckdb_date_from_value(year, month, day);
if (duckdb_append_date(ctx->appender, dt) == DuckDBError) {
rb_raise(eDuckDBError, "failed to append date");
}
return self;
@@ -296,11 +296,11 @@
static VALUE appender__append_interval(VALUE self, VALUE months, VALUE days, VALUE micros) {
duckdb_interval interval;
rubyDuckDBAppender *ctx;
TypedData_Get_Struct(self, rubyDuckDBAppender, &appender_data_type, ctx);
- to_duckdb_interval_from_value(&interval, months, days, micros);
+ rbduckdb_to_duckdb_interval_from_value(&interval, months, days, micros);
if (duckdb_append_interval(ctx->appender, interval) == DuckDBError) {
rb_raise(eDuckDBError, "failed to append interval");
}
return self;
@@ -309,11 +309,11 @@
static VALUE appender__append_time(VALUE self, VALUE hour, VALUE min, VALUE sec, VALUE micros) {
duckdb_time time;
rubyDuckDBAppender *ctx;
TypedData_Get_Struct(self, rubyDuckDBAppender, &appender_data_type, ctx);
- time = to_duckdb_time_from_value(hour, min, sec, micros);
+ time = rbduckdb_to_duckdb_time_from_value(hour, min, sec, micros);
if (duckdb_append_time(ctx->appender, time) == DuckDBError) {
rb_raise(eDuckDBError, "failed to append time");
}
return self;
@@ -324,11 +324,11 @@
rubyDuckDBAppender *ctx;
TypedData_Get_Struct(self, rubyDuckDBAppender, &appender_data_type, ctx);
- timestamp = to_duckdb_timestamp_from_value(year, month, day, hour, min, sec, micros);
+ timestamp = rbduckdb_to_duckdb_timestamp_from_value(year, month, day, hour, min, sec, micros);
if (duckdb_append_timestamp(ctx->appender, timestamp) == DuckDBError) {
rb_raise(eDuckDBError, "failed to append timestamp");
}
return self;
@@ -367,10 +367,10 @@
rb_raise(eDuckDBError, "failed to flush");
}
return self;
}
-void init_duckdb_appender(void) {
+void rbduckdb_init_duckdb_appender(void) {
cDuckDBAppender = rb_define_class_under(mDuckDB, "Appender", rb_cObject);
rb_define_alloc_func(cDuckDBAppender, allocate);
rb_define_method(cDuckDBAppender, "initialize", appender_initialize, 3);
rb_define_method(cDuckDBAppender, "begin_row", appender_begin_row, 0);
rb_define_method(cDuckDBAppender, "end_row", appender_end_row, 0);