Skip to content

Commit 0e75115

Browse files
timsehnclaude
andcommitted
Rename version to dolt_version (and return the doltlite version)
Keep every Dolt version-control helper dolt_-prefixed. The old #version was both unprefixed and wrong: it returned the SQLite libversion. dolt_version now returns SELECT dolt_version(). Generic connection methods (open/execute/query/ close) stay unprefixed as ordinary SQLite operations. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 62d6725 commit 0e75115

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

lib/doltlite/database.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,9 @@ def dolt_commit(message:, all: true)
5151
rows.dig(0, 0)
5252
end
5353

54-
def version
55-
C.sqlite3_libversion
54+
# The doltlite version string (SELECT dolt_version()).
55+
def dolt_version
56+
execute("SELECT dolt_version()").dig(0, 0)
5657
end
5758

5859
def close

0 commit comments

Comments
 (0)