ruby-kuzu 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/History.md +9 -0
- data/README.md +30 -1
- data/lib/kuzu.rb +1 -3
- data/spec/kuzu/types_spec.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 23c8abe4e594088573be5779b99b9a4670fc29722ab0840bf23b2eee5320ab26
|
4
|
+
data.tar.gz: 83d38c89dcadedcf493668246b9ce024380497941e70d0babecaeadd9d0f66b4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '04881e4a458dff96f29cde3a6c761848f868f9aa19e093dd21899a6f374ca5783ae3d967f6900f95ed59618a0f7ab242a8cbdbbd37366a045488ac64b5e3bbe4'
|
7
|
+
data.tar.gz: 1071575ae8d53bcc79d5a4cdacfe1d94b13d7e5b8c6e93301c7c5ea0ba922797594ddb5efbcee14c4bcf6721aab81a0e713de2c83380ddc12392d7e58b97922d
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/History.md
CHANGED
@@ -1,6 +1,15 @@
|
|
1
1
|
# Release History for ruby-kuzu
|
2
2
|
|
3
3
|
---
|
4
|
+
|
5
|
+
## v0.0.2 [2025-05-15] Michael Granger <ged@FaerieMUD.org>
|
6
|
+
|
7
|
+
Fixes:
|
8
|
+
|
9
|
+
- Fix an RDoc failure
|
10
|
+
- Add a bit more documentation
|
11
|
+
|
12
|
+
|
4
13
|
## v0.0.1 [2025-05-01] Michael Granger <ged@FaerieMUD.org>
|
5
14
|
|
6
15
|
Initial release
|
data/README.md
CHANGED
@@ -17,7 +17,36 @@ docs
|
|
17
17
|
|
18
18
|
A Ruby binding for the Kùzu embedded graph database.
|
19
19
|
|
20
|
-
|
20
|
+
|
21
|
+
### Creating A Database and Connecting To It
|
22
|
+
|
23
|
+
To create an in-memory database:
|
24
|
+
|
25
|
+
database = Kuzu.database
|
26
|
+
# => #<Kuzu::Database:0x000000012917ec68 path:nil read-only:false>
|
27
|
+
|
28
|
+
Or explicitly via an empty string:
|
29
|
+
|
30
|
+
database = Kuzu.database( '' )
|
31
|
+
# => #<Kuzu::Database:0x000000012144edb0 path:nil read-only:false>
|
32
|
+
|
33
|
+
If you pass a non-empty string, it is assumed to be the path to a database:
|
34
|
+
|
35
|
+
database = Kuzu.database( 'path/to/mydb' )
|
36
|
+
# => #<Kuzu::Database:0x0000000121624d10 path:"path/to/mydb" read-only:false>
|
37
|
+
|
38
|
+
There's also support for passing configuration options to the database
|
39
|
+
handle as keyword arguments to the `.database` method:
|
40
|
+
|
41
|
+
database = Kuzu.database( 'mydb', read_only: true )
|
42
|
+
# => #<Kuzu::Database:0x00000001227aa5a8 path:"mydb" read-only:true>
|
43
|
+
|
44
|
+
Once you have a Kuzu::Database object, you need a connection to actually use it:
|
45
|
+
|
46
|
+
conn = db.connect
|
47
|
+
# => #<Kuzu::Connection:0x0000000122a41f28 threads:16>
|
48
|
+
|
49
|
+
|
21
50
|
|
22
51
|
### Querying
|
23
52
|
|
data/lib/kuzu.rb
CHANGED
data/spec/kuzu/types_spec.rb
CHANGED
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-kuzu
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Granger
|
@@ -34,7 +34,7 @@ cert_chain:
|
|
34
34
|
8qAqdfV+4u6Huu1KzAuDQCheyEyISsLST37sU/irV3czV6BiFipWag1XiJciRT3A
|
35
35
|
wZqCfTNVHTdtsCbfdA1DsA3RdG2iEH3TOHzv1Rqzqh4=
|
36
36
|
-----END CERTIFICATE-----
|
37
|
-
date: 2025-05-
|
37
|
+
date: 2025-05-15 00:00:00.000000000 Z
|
38
38
|
dependencies:
|
39
39
|
- !ruby/object:Gem::Dependency
|
40
40
|
name: rake-compiler
|
metadata.gz.sig
CHANGED
Binary file
|