db

package
v0.0.0-...-a5dd61b Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CreateFileTable = `
		CREATE TABLE Files (
			FileID SERIAL PRIMARY KEY,
			FileName TEXT,
			FileURL TEXT,
			PreviewURL TEXT
		);
	`

	CreateTagTable = `
		CREATE TABLE Tags (
			TagID SERIAL PRIMARY KEY,
			Name TEXT,
			Description TEXT
		);
	`

	CreateLibraryTable = `` /* 243-byte string literal not displayed */

	QueryLibraryExists = `
		SELECT EXISTS (
			SELECT 1
			FROM information_schema.tables 
			WHERE table_name = 'library'
		);
	`
)

Variables

This section is empty.

Functions

func Connect

func Connect() (*pgx.Conn, error)

func InitDatabase

func InitDatabase(conn *pgx.Conn) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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