database

package
v8.4.4+incompatible Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

type Database interface {
	Open(connstring string) error
	Close() error
	Query(q string) (result Result, err error)
	Exec(q string) (lastInsertedID int64, err error)
}

Database is our imaginary database interface, it will never be used here.

type Result

type Result struct {
	// contains filtered or unexported fields
}

Result is our imaginary result, it will never be used, it's here to show you a method of doing these things.

func (*Result) Next

func (r *Result) Next() interface{}

Next moves the cursor to the next result.

Jump to

Keyboard shortcuts

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