d1

package
v0.2.15 Latest Latest
Warning

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

Go to latest
Published: May 26, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrDatabaseNotFound = Err(errPrefix + "database not found")

Functions

func NewDirect

func NewDirect(token, accountID, databaseID string) (*orm.DB, error)

NewDirect opens a D1 database via the REST API and returns an *orm.DB. Uses the same sqlt.NewCompiler() as the WASM adapter — identical SQL generation path. token, accountID, databaseID come from environment variables (never hardcoded).

Types

This section is empty.

Jump to

Keyboard shortcuts

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