spanner

package
v0.0.0-...-5dcb184 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SingerProvider

type SingerProvider struct {
	Client *googleSpanner.Client
}

SingerProvider implements singer.Repository

func (*SingerProvider) Create

func (repo *SingerProvider) Create(ctx context.Context, payload singer.CreatePayload) error

Create store singer to Spanner

func (*SingerProvider) Get

func (repo *SingerProvider) Get(ctx context.Context, singerID int64) (*singer.Detail, error)

Get fetch singer from Spanner based on its ID

func (*SingerProvider) List

func (repo *SingerProvider) List(ctx context.Context, filter singer.FilterPayload) ([]*singer.Detail, error)

List fetch singers from Spanner based on filter condition

type SingerRow

type SingerRow struct {
	SingerID   int64
	FirstName  googleSpanner.NullString
	LastName   googleSpanner.NullString
	SingerInfo []byte
	BirthDate  googleSpanner.NullDate
}

SingerRow represent the row in Singer table

Jump to

Keyboard shortcuts

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