mysql

package
v0.0.0-...-064c1f2 Latest Latest
Warning

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

Go to latest
Published: May 23, 2017 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Open

func Open(user, addr, dbName string) (*sql.DB, error)

Open is open mysql connection.

Types

type FizzbuzzTweetService

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

FizzbuzzTweetService is mysql database service.

func NewFizzbuzzTweetService

func NewFizzbuzzTweetService(db *sql.DB) FizzbuzzTweetService

NewFizzbuzzTweetService is create service.

func (FizzbuzzTweetService) AddTwitterTweetID

func (s FizzbuzzTweetService) AddTwitterTweetID(twitterTweetID, number uint64) error

AddTwitterTweetID is update fizzbuzz_tweets table row of id.

func (FizzbuzzTweetService) Insert

Insert is insert fizzbuzz_tweets table.

func (FizzbuzzTweetService) LatestTweet

func (s FizzbuzzTweetService) LatestTweet() (*model.FizzbuzzTweet, error)

LatestTweet return latest fizz buzz tweet.

type PostErrorService

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

PostErrorService is mysql database service.

func NewPostErrorService

func NewPostErrorService(db *sql.DB) PostErrorService

NewPostErrorService is create service.

func (PostErrorService) Insert

func (s PostErrorService) Insert(pe *model.PostError) (uint64, error)

Insert is insert post_errors table.

Jump to

Keyboard shortcuts

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