Skip to content

Commit 5de5ba3

Browse files
committed
add documents.
1 parent a61592b commit 5de5ba3

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

ext/duckdb/instance_cache.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ static VALUE duckdb_instance_cache_initialize(VALUE self) {
4747
return self;
4848
}
4949

50+
/* :nodoc: */
5051
static VALUE duckdb_instance_cache_get_or_create(int argc, VALUE *argv, VALUE self) {
5152
VALUE vpath = Qnil;
5253
VALUE vconfig = Qnil;

lib/duckdb/instance_cache.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ module DuckDB
1111
# db1 = cache.get(path: 'db.duckdb')
1212
# db2 = cache.get(path: 'db.duckdb')
1313
class InstanceCache
14+
# :call-seq:
15+
# instance_cache.get(path:, config:) -> self
16+
#
17+
# Returns a DuckDB::Database object for the given path and config.
18+
# db1 = cache.get(path: 'db.duckdb')
19+
# db2 = cache.get(path: 'db.duckdb')
1420
def get(path: nil, config: nil)
1521
get_or_create(path, config)
1622
end

0 commit comments

Comments
 (0)