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.
Click to show internal directories.
Click to hide internal directories.