virgodb 0.4.6-x86_64-linux-gnu → 0.4.8-x86_64-linux-gnu

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: b5e235d33b517085bc5cc0bdeac1f2d6e62d1196c9b68c2e6a3026df53cafcdc
4
- data.tar.gz: 4dfcb9cd35b596823a3ab104937c7f010abc80d1907d7e51dc67d1c2dc067a80
3
+ metadata.gz: 8d126a72fa57e28991c642bd995b952c81df1f024e51291f8a880f63913f5483
4
+ data.tar.gz: 48682c56e3f09417b8e241909edf65ae2519a07e0c62c27813aee63164c3bef1
5
5
  SHA512:
6
- metadata.gz: fdbfebafa71923db5d58b0988092671e2459cbf38cc50d91111f24d95ed8433f20d123a82cc625233aff5604b9629be20c919957f883bdf3ee94237e76bf0887
7
- data.tar.gz: 1bacc2500f120393fd50601883d9e4cafb7e8535ece4876486b96a1001b92545a06de5f118d8a8f7a9a80ce714a8b7e6f202dcbf8dfce9ad1fef698154b1448a
6
+ metadata.gz: 57912dbb519d7d1c62e13ff1db65b0394f2da3a1013caa6c906aa7ec4c09892d6d029d51deaba9de5a6a5f9217c867f90b6a9a427b971e0fc0a056f6d586a59b
7
+ data.tar.gz: e67f09ae131c4d5d35bbe3f505a79107a0136578b00345d109296b022911d3d4e6b2c843b894ac1916e85e70e5591fe16469743ddc1a8302c26892a356f49487
data/lib/virgodb/table.rb CHANGED
@@ -103,6 +103,23 @@ module Virgodb
103
103
  json && JSON.parse(json)
104
104
  end
105
105
 
106
+ # Runs a real PRAGMA integrity_check against the manifest through
107
+ # virgodb's own connection, returning "ok" or a description of what's
108
+ # wrong. Manifest-scoped, not table-scoped -- covers every table sharing
109
+ # this physical file, not just @sql_table_name. Not mutex-guarded, same
110
+ # reasoning as `query`/`maintenance_health` above.
111
+ #
112
+ # Use this instead of running PRAGMA integrity_check through any other
113
+ # connection (e.g. an ActiveRecord/`sqlite3`-gem connection) against
114
+ # this same manifest file -- a real incident traced part of its own risk
115
+ # surface to exactly that: a second connection TYPE (not just a second
116
+ # connection) racing virgodb's own writes on the same shared file. See
117
+ # Manifest::integrity_check's own doc comment (crates/manifest/src/lib.rs)
118
+ # for the full story.
119
+ def integrity_check
120
+ Virgodb.integrity_check(@manifest_path)
121
+ end
122
+
106
123
  # Claims this table's maintenance lease as `holder` for the next
107
124
  # `lease_duration_secs` seconds, locking out the real maintenance
108
125
  # thread (its own claim attempts fail against an unexpired lease the
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Virgodb
4
- VERSION = "0.4.6"
4
+ VERSION = "0.4.8"
5
5
  end
Binary file
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: virgodb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.6
4
+ version: 0.4.8
5
5
  platform: x86_64-linux-gnu
6
6
  authors:
7
7
  - virgodb
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-09-08 00:00:00.000000000 Z
11
+ date: 2026-09-09 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: |
14
14
  Embeds virgodb (an OLAP engine backed by Parquet + DataFusion) directly into a Ruby process