example

package
v0.0.0-...-8c49daf Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package example contains code snippets that are discussed, but not implemented by the Snippetbox project.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Usage

func Usage()

Types

type Prepare

type Prepare struct {
	DB         *sql.DB
	InsertStmt *sql.Stmt
}

func NewPrepare

func NewPrepare(db *sql.DB) (*Prepare, error)

func (*Prepare) Insert

func (p *Prepare) Insert() error

type Transaction

type Transaction struct {
	DB *sql.DB
}

func (*Transaction) ExampleTransaction

func (t *Transaction) ExampleTransaction() error

Jump to

Keyboard shortcuts

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