relation

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthorEL

type AuthorEL struct {
	Id   int32              `d3:"pk:auto"`
	Rel  *entity.Collection `d3:"many_to_many:<target_entity:Redactor,join_on:author_id,reference_on:redactor_id,join_table:author_redactor>,type:eager"`
	Name string
}

d3_table:author

func (*AuthorEL) D3Token

func (a *AuthorEL) D3Token() entity.MetaToken

type AuthorLL

type AuthorLL struct {
	ID   int32 `d3:"pk:auto"`
	Name string
}

d3_table:author

func (*AuthorLL) D3Token

func (a *AuthorLL) D3Token() entity.MetaToken

type BookEL

type BookEL struct {
	Id   int32              `d3:"pk:auto"`
	Rel  *entity.Collection `d3:"many_to_many:<target_entity:AuthorEL,join_on:book_id,reference_on:author_id,join_table:book_author>,type:eager"`
	Name string
}

d3_table:book

func (*BookEL) D3Token

func (b *BookEL) D3Token() entity.MetaToken

type BookER

type BookER struct {
	Id        int32              `d3:"pk:auto"`
	Discounts *entity.Collection `` /* 134-byte string literal not displayed */
	Name      string
}

d3_table:book

func (*BookER) D3Token

func (b *BookER) D3Token() entity.MetaToken

type BookLL

type BookLL struct {
	ID      int32              `d3:"pk:auto"`
	Authors *entity.Collection `` /* 164-byte string literal not displayed */
	Name    string
}

d3_table:book

func (*BookLL) D3Token

func (b *BookLL) D3Token() entity.MetaToken

type BookLR

type BookLR struct {
	Id   int32 `d3:"pk:auto"`
	Name string
}

d3_table:book

func (*BookLR) D3Token

func (b *BookLR) D3Token() entity.MetaToken

type DiscountER

type DiscountER struct {
	Id    int32 `d3:"pk:auto"`
	Value int32
}

d3_table:discount

func (*DiscountER) D3Token

func (d *DiscountER) D3Token() entity.MetaToken

type PhotoLL

type PhotoLL struct {
	ID   int32 `d3:"pk:auto"`
	Data string
}

d3_table:photo

func (*PhotoLL) D3Token

func (p *PhotoLL) D3Token() entity.MetaToken

type ProfileLL

type ProfileLL struct {
	ID    int32        `d3:"pk:auto"`
	Photo *entity.Cell `d3:"one_to_one:<target_entity:PhotoLL,join_on:t3_id,reference_on:id>,type:eager"`
	Data  string
}

d3_table:profile

func (*ProfileLL) D3Token

func (p *ProfileLL) D3Token() entity.MetaToken

type Redactor

type Redactor struct {
	Id   int32 `d3:"pk:auto"`
	Name string
}

d3_table:redactor

func (*Redactor) D3Token

func (r *Redactor) D3Token() entity.MetaToken

type ShopEL

type ShopEL struct {
	Id      int32        `d3:"pk:auto"`
	Profile *entity.Cell `d3:"one_to_one:<target_entity:ProfileLL,join_on:t2_id,reference_on:id>,type:eager"`
	Data    string
}

d3_table:shop

func (*ShopEL) D3Token

func (s *ShopEL) D3Token() entity.MetaToken

type ShopER

type ShopER struct {
	Id    int32              `d3:"pk:auto"`
	Books *entity.Collection `` /* 130-byte string literal not displayed */
	Name  string
}

d3_table:shop

func (*ShopER) D3Token

func (s *ShopER) D3Token() entity.MetaToken

type ShopLL

type ShopLL struct {
	ID      sql.NullInt32 `d3:"pk:auto"`
	Profile *entity.Cell  `d3:"one_to_one:<target_entity:ProfileLL,join_on:t2_id>,type:lazy"`
	Data    string
}

d3_table:shop

func (*ShopLL) D3Token

func (s *ShopLL) D3Token() entity.MetaToken

type ShopLR

type ShopLR struct {
	Id    int32              `d3:"pk:auto"`
	Books *entity.Collection `d3:"one_to_many:<target_entity:BookLR,join_on:t1_id>,type:lazy"`
	Name  string
}

d3_table:shop

func (*ShopLR) D3Token

func (s *ShopLR) D3Token() entity.MetaToken

Jump to

Keyboard shortcuts

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