sqlitedb

package
v2.3.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2026 License: AGPL-3.0 Imports: 5 Imported by: ? 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 sqlitedb adds SQLite to studio.OpenDatabase. Import it for its side effect:

import _ "github.com/TykTechnologies/midsommar/v2/pkg/studio/sqlitedb"

The SQLite driver (mattn/go-sqlite3) needs cgo, which is why pkg/studio leaves it out: a host that builds with CGO_ENABLED=0 and runs Studio on Postgres never links it. The standalone binary imports this package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Open

func Open(dsn string) gorm.Dialector

Open is the dialector Studio opens SQLite with. A file database gets the microgateway's concurrency defaults unless DATABASE_URL sets them: WAL, _busy_timeout=5000, _synchronous=NORMAL and _txlock=immediate, and cache=shared is dropped (see sqlitedsn.Normalize). Without them a create whose hooks read before writing (the LLM and tool slug checks) fails with "database is locked" whenever a background writer commits in between. An in-memory DSN is used as is.

Types

This section is empty.

Jump to

Keyboard shortcuts

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