db

package
v0.0.0-...-7c8eabc Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2020 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

View Source
const (
	MaxConns int = 100
	MixConns int = 2
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Poem

type Poem struct {
	Id      int
	Title   string
	Author  string
	Dynasty string
	Content string
}

func QueryPoemsByAuthor

func QueryPoemsByAuthor(author string) (poems []Poem, err error)

func QueryPoemsHasWord

func QueryPoemsHasWord(field string, value string) (poems []Poem, err error)

func (*Poem) HasRow

func (p *Poem) HasRow() bool

func (*Poem) Insert

func (p *Poem) Insert() bool

func (*Poem) Save

func (p *Poem) Save()

func (*Poem) UpdateContent

func (p *Poem) UpdateContent(newContent string) bool

Jump to

Keyboard shortcuts

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