Documentation
¶
Index ¶
Constants ¶
View Source
const SourceType string = "sqlite"
Variables ¶
View Source
var ( MaxBytes = 32 << 20 MaxValue = 16 << 20 )
MaxBytes bounds what a query's rows hold together, and MaxValue one value (Blitz; security review databases#3: SELECT randomblob(900000000) over a few rows took the service's memory).
View Source
var MaxRows = 1000
MaxRows bounds the rows a query returns (Blitz).
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Name string `yaml:"name" validate:"required"`
Type string `yaml:"type" validate:"required"`
Database string `yaml:"database" validate:"required"` // Path to SQLite database file
SQLCommenter *bool `yaml:"sqlCommenter"`
// ReadOnly opens the file read-only (Blitz): writes fail in SQLite
// itself, and tools that write aren't offered.
ReadOnly bool `yaml:"readOnly"`
}
func (Config) Initialize ¶
func (Config) SourceConfigType ¶
type Source ¶
func (*Source) IsReadOnly ¶
func (*Source) SourceType ¶
func (*Source) ToConfig ¶
func (s *Source) ToConfig() sources.SourceConfig
Click to show internal directories.
Click to hide internal directories.