examples

package
v0.0.0-...-7203340 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type One

type One struct {
	ID   int64 `sql:"primary key;auto increment"`
	Name string
	// OtherOne is one-to-one relationship with a type called "OtherOne"
	OtherOne *OtherOne
}

One is for testing ont-to-one relation

type OtherOne

type OtherOne struct {
	ID   int64 `sql:"primary key;auto increment"`
	Name string
}

OtherOne is also for testing one-to-one relation

Jump to

Keyboard shortcuts

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