sqls

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2023 License: BSD-3-Clause Imports: 0 Imported by: 0

Documentation

Overview

Package sqls implements SQL schema definitions.

Index

Constants

View Source
const BasePragma = `
pragma encoding = "UTF-8";
pragma foreign_keys = ON;
`

BasePragma is the baseline required database pragma.

View Source
const BaseSchema = `` /* 239-byte string literal not displayed */

BaseSchema is the baseline required database schema.

View Source
const ProdSchema = BaseSchema + `
insert into Keys (name) values ("readme");
insert into Vals (key, body) values ("readme", "Welcome to Soske!");
`

ProdSchema is the default schema for production applications.

View Source
const TestSchema = BaseSchema + `
insert into Keys (name, init) values ("alpha", 100);
insert into Keys (name, init) values ("bravo", 200);
insert into Keys (name, init) values ("charlie", 300);
insert into Vals (key, body, init) values ("alpha", "Alpha one.", 400);
insert into Vals (key, body, init) values ("alpha", "Alpha two.", 500);
insert into Vals (key, body, init) values ("bravo", "Bravo one.", 600);
`

TestSchema is the default schema for testing applications.

Variables

This section is empty.

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