dbversion

package
v5.4.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 3, 2026 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const CapStaleness = "ch_staleness"

CapStaleness is the server capability key for ORDER BY ... WITH FILL STALENESS, which clickhouse added in 24.11. Below that the clause is a parse error, so it must never be emitted; callers fall back to arrayJoin range expansion instead.

Variables

This section is empty.

Functions

This section is empty.

Types

type VersionInfo

type VersionInfo map[string]int64

func GetVersionInfo

func GetVersionInfo(ctx context.Context, dist bool, db model.ISqlxDB) (VersionInfo, error)

func (VersionInfo) HasCapability

func (v VersionInfo) HasCapability(name string) bool

HasCapability reports a server capability, as opposed to IsVersionSupported, which reports whether a qryn migration was applied before a data range. A capability is not scoped to a time range: it is a property of the running server, present or absent, so it carries no timestamp comparison.

func (VersionInfo) IsVersionSupported

func (v VersionInfo) IsVersionSupported(ver string, fromNS int64, toNS int64) bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL