sqlitefile

package
v2.4.6 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package sqlitefile creates a SQLite database file with its mode set, ahead of the driver, which would leave the mode to the umask.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(dsn string) error

Create creates the missing database file a DSN names, 0600, before the driver opens it. The driver would create it with the process umask, which leaves it readable by every local user (#2417, #2422). An existing file keeps its mode, and SQLite gives its journal and WAL files the database file's mode.

func Path

func Path(dsn string) string

Path returns the file a DSN would make SQLite create, or "" when it creates none: an in-memory database, or a mode other than rwc.

Types

This section is empty.

Jump to

Keyboard shortcuts

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