sqlstore

package
v1.10.4 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package sqlstore shares transactional record persistence across SQL backends.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(db *grove.DB, raw driver.Driver, kind Kind) state.Backend

New binds a database connection to the shared record adapter.

Types

type Kind

type Kind int

Kind selects the supported database's transaction and SQL conventions.

const (
	// SQLite uses question-mark parameters and a database-wide writer lock.
	SQLite Kind = iota
	// PostgreSQL uses numbered parameters and row locks under READ COMMITTED.
	PostgreSQL
)

Jump to

Keyboard shortcuts

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