libsqlcompat

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2026 License: MIT, MIT Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package libsqlcompat contains the pinned HTTP v2 driver with bounded detached stream cleanup. See NOTICE and UPSTREAM.json for its source and local changes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HTTPStatus

func HTTPStatus(err error) int

HTTPStatus preserves an actual provider response status for the engine's stage-aware retry policy. It does not imply that a write was rejected.

func IsIncompleteAcknowledgement

func IsIncompleteAcknowledgement(err error) bool

IsIncompleteAcknowledgement preserves ordinary read retries when a known transport error interrupted the body. It never authorizes replay of a write.

func IsInvalidAcknowledgement

func IsInvalidAcknowledgement(err error) bool

IsInvalidAcknowledgement distinguishes a received malformed success from a definite rejection. An issued write may already have committed in this case.

func OpenHTTP

func OpenHTTP(dbURL string) (driver.Conn, error)

OpenHTTP preserves the legacy libsql Driver.Open HTTP DSN contract. The caller selects this entry point only for libsql://, http:// and https:// transports; the upstream driver continues to own the separate WebSocket and file paths.

Types

type Opener

type Opener struct {
	// contains filtered or unexported fields
}

Opener shares a bounded detached-cleanup manager across one database's connections. Use a separate opener for each database/sql pool.

func NewOpener

func NewOpener() *Opener

func (*Opener) CleanupStats

func (o *Opener) CleanupStats() httpv2.CleanupStats

func (*Opener) OpenHTTP

func (o *Opener) OpenHTTP(dbURL string) (driver.Conn, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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