ext/duckdb/database.c in duckdb-0.0.5 vs ext/duckdb/database.c in duckdb-0.0.6

- old
+ new

@@ -34,14 +34,16 @@ rb_raise(eDuckDBError, "Failed to open database"); /* FIXME */ } return obj; } -static VALUE duckdb_database_connect(VALUE self) { +static VALUE duckdb_database_connect(VALUE self) +{ return create_connection(self); } -void init_duckdb_database(void) { +void init_duckdb_database(void) +{ VALUE 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_method(cDuckDBDatabase, "connect", duckdb_database_connect, 0); }