tests

package
v2.0.6 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Albums

type Albums struct {
	SingerId   int64
	AlbumId    int64
	Title      string
	DeleteTime spanner.NullTime `spanner:"DeleteTime" ssorm_key:"delete_time"`
}

type Concerts

type Concerts struct {
	SingerId   int64
	ConcertId  int64
	Price      int64
	DeleteTime spanner.NullTime `spanner:"DeleteTime" ssorm_key:"delete_time"`
}

type DataTypes

type DataTypes struct {
	DataTypesId  int64 `ssorm_key:"primary"`
	FirstName    string
	TestTime     spanner.NullTime
	ArrayString  []spanner.NullString
	ArrayInt64   []int64
	ArrayFloat64 []float64
	BoolValue    bool
	FloatValue   float64
	DateValue    civil.Date
	CreateTime   time.Time        `spanner:"CreateTime" ssorm_key:"create_time"`
	UpdateTime   time.Time        `spanner:"UpdateTime" ssorm_key:"update_time"`
	DeleteTime   spanner.NullTime `spanner:"DeleteTime" ssorm_key:"delete_time"`
}

type Singer

type Singer struct {
	SingerId        int64 `ssorm_key:"primary"`
	FirstName       string
	LastName        spanner.NullString
	LastName2       spanner.NullString
	TestTime        spanner.NullTime     `spanner:"TestTime"` //NULL を許容する場合必ず、spanner.NullTimeを指定すること
	TestSpannerTime spanner.NullTime     `spanner:"TestSpannerTime"`
	TagIDs          []spanner.NullString `spanner:"TagIds"`
	Numbers         []int64              `spanner:"Numbers"`
	Albums          []*Albums            `spanner:"Albums"`
	Concerts        []*Concerts          `spanner:"Concerts"`
	DeleteTime      spanner.NullTime     `spanner:"DeleteTime" ssorm_key:"delete_time"`
	CreateTime      time.Time            `spanner:"CreateTime" ssorm_key:"create_time"`
	UpdateTime      time.Time            `spanner:"UpdateTime" ssorm_key:"update_time"`
}

type Singers

type Singers struct {
	SingerId        int64  `ssorm_key:"primary"`
	Name            string `spanner:"FirstName"`
	FistInt         int64  `ssorm_key:"ignore_write"`
	LastName        spanner.NullString
	TestTime        spanner.NullTime     `spanner:"TestTime"` //NULL を許容する場合必ず、spanner.NullTimeを指定すること
	TestSpannerTime spanner.NullTime     `spanner:"TestSpannerTime"`
	TagIDs          []spanner.NullString `spanner:"TagIds"`
	Numbers         []int64              `spanner:"Numbers"`
	DeleteTime      spanner.NullTime     `spanner:"DeleteTime" ssorm_key:"delete_time"`
	CreateTime      time.Time            `spanner:"CreateTime" ssorm_key:"create_time"`
	UpdateTime      time.Time            `spanner:"UpdateTime" ssorm_key:"update_time"`
}

Jump to

Keyboard shortcuts

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