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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7efba3eca4a268d102e73e5d356fcdd530b40a5cc4cdeadf8089ef6ef7eb54b5
4
- data.tar.gz: 473c82d2a4ceaa1c6b9a21a8c031382ca689f0954f941778473319c75271af8b
3
+ metadata.gz: 23c8abe4e594088573be5779b99b9a4670fc29722ab0840bf23b2eee5320ab26
4
+ data.tar.gz: 83d38c89dcadedcf493668246b9ce024380497941e70d0babecaeadd9d0f66b4
5
5
  SHA512:
6
- metadata.gz: 8a8f267516b68f4ab6684f9a9d3b7df2d49b4788d45140649128d83547f27ee696d2f6359428448b72a48cdafde8126830d7ebe6ec0e292f5b188ec1bb96e8ce
7
- data.tar.gz: 996a8d10076b0452fad789ae564c640af8b77c52df5d157aed6a38ef7d0001034cf35976b69d22f25333f289284c9526d2a95fd9ffa53a737d9c46878d357a83
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
- ### Connecting To/Creating A Database
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
@@ -11,7 +11,7 @@ module Kuzu
11
11
 
12
12
 
13
13
  # Library version
14
- VERSION = '0.0.1'
14
+ VERSION = '0.0.2'
15
15
 
16
16
 
17
17
  # Set up a logger for Kuzu classes
@@ -75,5 +75,3 @@ module Kuzu
75
75
 
76
76
  end # module Kuzu
77
77
 
78
- # Fancy alias
79
- Kùzu = Kuzu
@@ -31,7 +31,7 @@ RSpec.describe( "data types" ) do
31
31
  expect( x.day ).to eq( 1 )
32
32
 
33
33
  result.finish
34
- end
34
+ end
35
35
 
36
36
 
37
37
  it "converts STRUCT values to OpenStructs" do
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.1
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-13 00:00:00.000000000 Z
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