Documentation ¶
Overview ¶
Package model contains the types for schema ”.
Package model contains the types for schema ”.
Package model contains the types for schema ”.
Package model contains the types for schema ”.
Package model contains the types for schema ”.
Package model contains the types for schema ”.
Package model contains the types for schema ”.
Package model contains the types for schema ”.
Package model contains the types for schema ”.
Package model contains the types for schema ”.
Package model contains the types for schema ”.
Index ¶
- Variables
- type Address
- type AddressCc
- func (ac *AddressCc) AddressByAddressID(db XODB) (*Address, error)
- func (ac *AddressCc) Delete(db XODB) error
- func (ac *AddressCc) Deleted() bool
- func (ac *AddressCc) Exists() bool
- func (ac *AddressCc) Insert(db XODB) error
- func (ac *AddressCc) MailByMailID(db XODB) (*Mail, error)
- func (ac *AddressCc) Save(db XODB) error
- func (ac *AddressCc) Update(db XODB) error
- type AddressFrom
- func (af *AddressFrom) AddressByAddressID(db XODB) (*Address, error)
- func (af *AddressFrom) Delete(db XODB) error
- func (af *AddressFrom) Deleted() bool
- func (af *AddressFrom) Exists() bool
- func (af *AddressFrom) Insert(db XODB) error
- func (af *AddressFrom) MailByMailID(db XODB) (*Mail, error)
- func (af *AddressFrom) Save(db XODB) error
- func (af *AddressFrom) Update(db XODB) error
- type AddressReplyto
- func (ar *AddressReplyto) AddressByAddressID(db XODB) (*Address, error)
- func (ar *AddressReplyto) Delete(db XODB) error
- func (ar *AddressReplyto) Deleted() bool
- func (ar *AddressReplyto) Exists() bool
- func (ar *AddressReplyto) Insert(db XODB) error
- func (ar *AddressReplyto) MailByMailID(db XODB) (*Mail, error)
- func (ar *AddressReplyto) Save(db XODB) error
- func (ar *AddressReplyto) Update(db XODB) error
- type AddressTo
- func (at *AddressTo) AddressByAddressID(db XODB) (*Address, error)
- func (at *AddressTo) Delete(db XODB) error
- func (at *AddressTo) Deleted() bool
- func (at *AddressTo) Exists() bool
- func (at *AddressTo) Insert(db XODB) error
- func (at *AddressTo) MailByMailID(db XODB) (*Mail, error)
- func (at *AddressTo) Save(db XODB) error
- func (at *AddressTo) Update(db XODB) error
- type Flag
- type FlagMail
- func (fm *FlagMail) Delete(db XODB) error
- func (fm *FlagMail) Deleted() bool
- func (fm *FlagMail) Exists() bool
- func (fm *FlagMail) Flag(db XODB) (*Flag, error)
- func (fm *FlagMail) Insert(db XODB) error
- func (fm *FlagMail) MailByMailID(db XODB) (*Mail, error)
- func (fm *FlagMail) Save(db XODB) error
- func (fm *FlagMail) Update(db XODB) error
- type Header
- type HeaderMail
- func (hm *HeaderMail) Delete(db XODB) error
- func (hm *HeaderMail) Deleted() bool
- func (hm *HeaderMail) Exists() bool
- func (hm *HeaderMail) Header(db XODB) (*Header, error)
- func (hm *HeaderMail) Insert(db XODB) error
- func (hm *HeaderMail) MailByMailID(db XODB) (*Mail, error)
- func (hm *HeaderMail) Save(db XODB) error
- func (hm *HeaderMail) Update(db XODB) error
- type Mail
- type ScannerValuer
- type Slice
- type StringSlice
- type XODB
Constants ¶
This section is empty.
Variables ¶
var XOLog = func(string, ...interface{}) {}
XOLog provides the log func used by generated queries.
Functions ¶
This section is empty.
Types ¶
type Address ¶
type Address struct { ID int64 // id Address string // address Name string // name // contains filtered or unexported fields }
Address represents a row from 'address'.
func AddressByAddressName ¶
AddressByAddressName retrieves a row from 'address' as a Address.
Generated from index 'uidx_address_address_name'.
func AddressByID ¶
AddressByID retrieves a row from 'address' as a Address.
Generated from index 'address_id_pkey'.
func (*Address) Deleted ¶
Deleted provides information if the Address has been deleted from the database.
type AddressCc ¶
type AddressCc struct { ID int64 // id MailID int64 // mail_id AddressID int64 // address_id // contains filtered or unexported fields }
AddressCc represents a row from 'address_cc'.
func AddressCcByID ¶
AddressCcByID retrieves a row from 'address_cc' as a AddressCc.
Generated from index 'address_cc_id_pkey'.
func AddressCcsByAddressID ¶
AddressCcsByAddressID retrieves a row from 'address_cc' as a AddressCc.
Generated from index 'idx_address_cc_address_id'.
func AddressCcsByMailID ¶
AddressCcsByMailID retrieves a row from 'address_cc' as a AddressCc.
Generated from index 'idx_address_cc_mail_id'.
func (*AddressCc) AddressByAddressID ¶
AddressByAddressID returns the Address associated with the AddressCc's AddressID (address_id).
Generated from foreign key 'address_cc_address_id_fkey'.
func (*AddressCc) Deleted ¶
Deleted provides information if the AddressCc has been deleted from the database.
func (*AddressCc) MailByMailID ¶
MailByMailID returns the Mail associated with the AddressCc's MailID (mail_id).
Generated from foreign key 'address_cc_mail_id_fkey'.
type AddressFrom ¶
type AddressFrom struct { ID int64 // id MailID int64 // mail_id AddressID int64 // address_id // contains filtered or unexported fields }
AddressFrom represents a row from 'address_from'.
func AddressFromByID ¶
func AddressFromByID(db XODB, id int64) (*AddressFrom, error)
AddressFromByID retrieves a row from 'address_from' as a AddressFrom.
Generated from index 'address_from_id_pkey'.
func AddressFromsByAddressID ¶
func AddressFromsByAddressID(db XODB, addressID int64) ([]*AddressFrom, error)
AddressFromsByAddressID retrieves a row from 'address_from' as a AddressFrom.
Generated from index 'idx_address_from_address_id'.
func AddressFromsByMailID ¶
func AddressFromsByMailID(db XODB, mailID int64) ([]*AddressFrom, error)
AddressFromsByMailID retrieves a row from 'address_from' as a AddressFrom.
Generated from index 'idx_address_from_mail_id'.
func (*AddressFrom) AddressByAddressID ¶
func (af *AddressFrom) AddressByAddressID(db XODB) (*Address, error)
AddressByAddressID returns the Address associated with the AddressFrom's AddressID (address_id).
Generated from foreign key 'address_from_address_id_fkey'.
func (*AddressFrom) Delete ¶
func (af *AddressFrom) Delete(db XODB) error
Delete deletes the AddressFrom from the database.
func (*AddressFrom) Deleted ¶
func (af *AddressFrom) Deleted() bool
Deleted provides information if the AddressFrom has been deleted from the database.
func (*AddressFrom) Exists ¶
func (af *AddressFrom) Exists() bool
Exists determines if the AddressFrom exists in the database.
func (*AddressFrom) Insert ¶
func (af *AddressFrom) Insert(db XODB) error
Insert inserts the AddressFrom to the database.
func (*AddressFrom) MailByMailID ¶
func (af *AddressFrom) MailByMailID(db XODB) (*Mail, error)
MailByMailID returns the Mail associated with the AddressFrom's MailID (mail_id).
Generated from foreign key 'address_from_mail_id_fkey'.
func (*AddressFrom) Save ¶
func (af *AddressFrom) Save(db XODB) error
Save saves the AddressFrom to the database.
func (*AddressFrom) Update ¶
func (af *AddressFrom) Update(db XODB) error
Update updates the AddressFrom in the database.
type AddressReplyto ¶
type AddressReplyto struct { ID int64 // id MailID int64 // mail_id AddressID int64 // address_id // contains filtered or unexported fields }
AddressReplyto represents a row from 'address_replyto'.
func AddressReplytoByID ¶
func AddressReplytoByID(db XODB, id int64) (*AddressReplyto, error)
AddressReplytoByID retrieves a row from 'address_replyto' as a AddressReplyto.
Generated from index 'address_replyto_id_pkey'.
func AddressReplytosByAddressID ¶
func AddressReplytosByAddressID(db XODB, addressID int64) ([]*AddressReplyto, error)
AddressReplytosByAddressID retrieves a row from 'address_replyto' as a AddressReplyto.
Generated from index 'idx_address_replyto_address_id'.
func AddressReplytosByMailID ¶
func AddressReplytosByMailID(db XODB, mailID int64) ([]*AddressReplyto, error)
AddressReplytosByMailID retrieves a row from 'address_replyto' as a AddressReplyto.
Generated from index 'idx_address_replyto_mail_id'.
func (*AddressReplyto) AddressByAddressID ¶
func (ar *AddressReplyto) AddressByAddressID(db XODB) (*Address, error)
AddressByAddressID returns the Address associated with the AddressReplyto's AddressID (address_id).
Generated from foreign key 'address_replyto_address_id_fkey'.
func (*AddressReplyto) Delete ¶
func (ar *AddressReplyto) Delete(db XODB) error
Delete deletes the AddressReplyto from the database.
func (*AddressReplyto) Deleted ¶
func (ar *AddressReplyto) Deleted() bool
Deleted provides information if the AddressReplyto has been deleted from the database.
func (*AddressReplyto) Exists ¶
func (ar *AddressReplyto) Exists() bool
Exists determines if the AddressReplyto exists in the database.
func (*AddressReplyto) Insert ¶
func (ar *AddressReplyto) Insert(db XODB) error
Insert inserts the AddressReplyto to the database.
func (*AddressReplyto) MailByMailID ¶
func (ar *AddressReplyto) MailByMailID(db XODB) (*Mail, error)
MailByMailID returns the Mail associated with the AddressReplyto's MailID (mail_id).
Generated from foreign key 'address_replyto_mail_id_fkey'.
func (*AddressReplyto) Save ¶
func (ar *AddressReplyto) Save(db XODB) error
Save saves the AddressReplyto to the database.
func (*AddressReplyto) Update ¶
func (ar *AddressReplyto) Update(db XODB) error
Update updates the AddressReplyto in the database.
type AddressTo ¶
type AddressTo struct { ID int64 // id MailID int64 // mail_id AddressID int64 // address_id // contains filtered or unexported fields }
AddressTo represents a row from 'address_to'.
func AddressToByID ¶
AddressToByID retrieves a row from 'address_to' as a AddressTo.
Generated from index 'address_to_id_pkey'.
func AddressTosByAddressID ¶
AddressTosByAddressID retrieves a row from 'address_to' as a AddressTo.
Generated from index 'idx_address_to_address_id'.
func AddressTosByMailID ¶
AddressTosByMailID retrieves a row from 'address_to' as a AddressTo.
Generated from index 'idx_address_to_mail_id'.
func (*AddressTo) AddressByAddressID ¶
AddressByAddressID returns the Address associated with the AddressTo's AddressID (address_id).
Generated from foreign key 'address_to_address_id_fkey'.
func (*AddressTo) Deleted ¶
Deleted provides information if the AddressTo has been deleted from the database.
func (*AddressTo) MailByMailID ¶
MailByMailID returns the Mail associated with the AddressTo's MailID (mail_id).
Generated from foreign key 'address_to_mail_id_fkey'.
type Flag ¶
Flag represents a row from 'flag'.
func FlagByID ¶
FlagByID retrieves a row from 'flag' as a Flag.
Generated from index 'flag_id_pkey'.
func FlagByName ¶
FlagByName retrieves a row from 'flag' as a Flag.
Generated from index 'uidx_flag_name'.
type FlagMail ¶
type FlagMail struct { ID int64 // id FlagID int64 // flag_id MailID int64 // mail_id // contains filtered or unexported fields }
FlagMail represents a row from 'flag_mail'.
func FlagMailByID ¶
FlagMailByID retrieves a row from 'flag_mail' as a FlagMail.
Generated from index 'flag_mail_id_pkey'.
func FlagMailsByFlagIDMailID ¶
FlagMailsByFlagIDMailID retrieves a row from 'flag_mail' as a FlagMail.
Generated from index 'idx_flag_mail_flag_id_mail_id'.
func FlagMailsByMailID ¶
FlagMailsByMailID retrieves a row from 'flag_mail' as a FlagMail.
Generated from index 'idx_flag_mail_mail_id'.
func (*FlagMail) Deleted ¶
Deleted provides information if the FlagMail has been deleted from the database.
func (*FlagMail) Flag ¶
Flag returns the Flag associated with the FlagMail's FlagID (flag_id).
Generated from foreign key 'flag_mail_flag_id_fkey'.
func (*FlagMail) MailByMailID ¶
MailByMailID returns the Mail associated with the FlagMail's MailID (mail_id).
Generated from foreign key 'flag_mail_mail_id_fkey'.
type Header ¶
Header represents a row from 'header'.
func HeaderByID ¶
HeaderByID retrieves a row from 'header' as a Header.
Generated from index 'header_id_pkey'.
func HeaderByName ¶
HeaderByName retrieves a row from 'header' as a Header.
Generated from index 'uidx_header_name'.
func (*Header) Deleted ¶
Deleted provides information if the Header has been deleted from the database.
type HeaderMail ¶
type HeaderMail struct { ID int64 // id HeaderID int64 // header_id MailID int64 // mail_id HeaderValue string // header_value // contains filtered or unexported fields }
HeaderMail represents a row from 'header_mail'.
func HeaderMailByID ¶
func HeaderMailByID(db XODB, id int64) (*HeaderMail, error)
HeaderMailByID retrieves a row from 'header_mail' as a HeaderMail.
Generated from index 'header_mail_id_pkey'.
func HeaderMailsByHeaderIDHeaderValue ¶
func HeaderMailsByHeaderIDHeaderValue(db XODB, headerID int64, headerValue string) ([]*HeaderMail, error)
HeaderMailsByHeaderIDHeaderValue retrieves a row from 'header_mail' as a HeaderMail.
Generated from index 'idx_header_mail_header_id_header_value'.
func HeaderMailsByMailID ¶
func HeaderMailsByMailID(db XODB, mailID int64) ([]*HeaderMail, error)
HeaderMailsByMailID retrieves a row from 'header_mail' as a HeaderMail.
Generated from index 'idx_header_mail_mail_id'.
func (*HeaderMail) Delete ¶
func (hm *HeaderMail) Delete(db XODB) error
Delete deletes the HeaderMail from the database.
func (*HeaderMail) Deleted ¶
func (hm *HeaderMail) Deleted() bool
Deleted provides information if the HeaderMail has been deleted from the database.
func (*HeaderMail) Exists ¶
func (hm *HeaderMail) Exists() bool
Exists determines if the HeaderMail exists in the database.
func (*HeaderMail) Header ¶
func (hm *HeaderMail) Header(db XODB) (*Header, error)
Header returns the Header associated with the HeaderMail's HeaderID (header_id).
Generated from foreign key 'header_mail_header_id_fkey'.
func (*HeaderMail) Insert ¶
func (hm *HeaderMail) Insert(db XODB) error
Insert inserts the HeaderMail to the database.
func (*HeaderMail) MailByMailID ¶
func (hm *HeaderMail) MailByMailID(db XODB) (*Mail, error)
MailByMailID returns the Mail associated with the HeaderMail's MailID (mail_id).
Generated from foreign key 'header_mail_mail_id_fkey'.
func (*HeaderMail) Save ¶
func (hm *HeaderMail) Save(db XODB) error
Save saves the HeaderMail to the database.
func (*HeaderMail) Update ¶
func (hm *HeaderMail) Update(db XODB) error
Update updates the HeaderMail in the database.
type Mail ¶
type Mail struct { ID int64 // id Content string // content TsReceived int64 // ts_received // contains filtered or unexported fields }
Mail represents a row from 'mail'.
func MailByID ¶
MailByID retrieves a row from 'mail' as a Mail.
Generated from index 'mail_id_pkey'.
func MailsByTsReceived ¶
MailsByTsReceived retrieves a row from 'mail' as a Mail.
Generated from index 'idx_mail_ts_received'.
type ScannerValuer ¶
ScannerValuer is the common interface for types that implement both the database/sql.Scanner and sql/driver.Valuer interfaces.
type StringSlice ¶
type StringSlice []string
StringSlice is a slice of strings.
func (*StringSlice) Scan ¶
func (ss *StringSlice) Scan(src interface{}) error
Scan satisfies the sql.Scanner interface for StringSlice.
type XODB ¶
type XODB interface { Exec(string, ...interface{}) (sql.Result, error) Query(string, ...interface{}) (*sql.Rows, error) QueryRow(string, ...interface{}) *sql.Row }
XODB is the common interface for database operations that can be used with types from schema ”.
This should work with database/sql.DB and database/sql.Tx.