d1

package
v0.5.6 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package d1 registers Cloudflare D1 for a d1:// DSN.

This is the host build: the scheme resolves, so configuration carrying a d1:// connection validates and reports the sqlite dialect, but opening it fails, because the binding exists only inside a Worker. Development runs on a sqlite:// file, which is the same dialect.

Index

Constants

View Source
const Dialect = "sqlite"

Dialect is the dialect this engine reports, which is SQLite's.

View Source
const Scheme = "d1"

Scheme is the DSN prefix that selects this engine.

Variables

View Source
var ErrOutsideWorker = errors.New("popcornweb/database/d1: a d1:// connection opens only inside a Cloudflare Worker; use a sqlite:// file in development")

ErrOutsideWorker is returned by Open on a host that is not a Cloudflare Worker.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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