version

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TSDB_MIN_VERSION TimescaleVersion = 21000
	TSDB_212_VERSION TimescaleVersion = 21200
	PG_MIN_VERSION   PostgresVersion  = 130000
	PG_14_VERSION    PostgresVersion  = 140000
	PG_15_VERSION    PostgresVersion  = 150000
)

Variables

View Source
var (
	BinName    = "timescaledb-event-streamer"
	Version    = "0.12.0"
	CommitHash = "unknown"
	Branch     = "unknown"
)

Functions

This section is empty.

Types

type PostgresVersion

type PostgresVersion uint

PostgresVersion represents the parsed and comparable version number of the connected PostgreSQL server

func ParsePostgresVersion

func ParsePostgresVersion(
	version string,
) (PostgresVersion, error)

ParsePostgresVersion parses a version string retrieved from a PostgreSQL server and returns a PostgresVersion instance

func (PostgresVersion) Compare

func (pv PostgresVersion) Compare(
	other PostgresVersion,
) int

Compare returns a negative value if the current version is lower than other, returns 0 if the versions match, otherwise it returns a value larger than 0.

func (PostgresVersion) Major

func (pv PostgresVersion) Major() uint

Major returns the major version

func (PostgresVersion) Minor

func (pv PostgresVersion) Minor() uint

Minor returns the minor version

func (PostgresVersion) String

func (pv PostgresVersion) String() string

String returns the string representation of the PostgreSQL server version as in >>major.minor<<

type TimescaleVersion

type TimescaleVersion uint

TimescaleVersion represents the parsed and comparable version number of the TimescaleDB extension loaded in the connected PostgreSQL server

func ParseTimescaleVersion

func ParseTimescaleVersion(
	version string,
) (TimescaleVersion, error)

ParseTimescaleVersion parses a TimescaleDB extension version string retrieved from a PostgreSQL server and returns a TimescaleVersion instance

func (TimescaleVersion) Compare

func (tv TimescaleVersion) Compare(
	other TimescaleVersion,
) int

Compare returns a negative value if the current version is lower than other, returns 0 if the versions match, otherwise it returns a value larger than 0.

func (TimescaleVersion) Major

func (tv TimescaleVersion) Major() uint

Major returns the major version

func (TimescaleVersion) Minor

func (tv TimescaleVersion) Minor() uint

Minor returns the minor version

func (TimescaleVersion) Release

func (tv TimescaleVersion) Release() uint

Release returns the release version

func (TimescaleVersion) String

func (tv TimescaleVersion) String() string

String returns the string representation of the TimescaleDB extension version as in >>major.minor.release<<

Jump to

Keyboard shortcuts

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