Documentation ¶
Index ¶
- type Adapter
- type Comment
- func (o *Comment) Create() error
- func (o *Comment) Destroy() error
- func (o *Comment) Find(_findByCommentID int64) (bool, error)
- func (o *Comment) FindByCommentAgent(_findByCommentAgent string) ([]*Comment, error)
- func (o *Comment) FindByCommentApproved(_findByCommentApproved string) ([]*Comment, error)
- func (o *Comment) FindByCommentAuthor(_findByCommentAuthor string) ([]*Comment, error)
- func (o *Comment) FindByCommentAuthorEmail(_findByCommentAuthorEmail string) ([]*Comment, error)
- func (o *Comment) FindByCommentAuthorIP(_findByCommentAuthorIP string) ([]*Comment, error)
- func (o *Comment) FindByCommentAuthorUrl(_findByCommentAuthorUrl string) ([]*Comment, error)
- func (o *Comment) FindByCommentContent(_findByCommentContent string) ([]*Comment, error)
- func (o *Comment) FindByCommentDate(_findByCommentDate *DateTime) ([]*Comment, error)
- func (o *Comment) FindByCommentDateGmt(_findByCommentDateGmt *DateTime) ([]*Comment, error)
- func (o *Comment) FindByCommentKarma(_findByCommentKarma int) ([]*Comment, error)
- func (o *Comment) FindByCommentParent(_findByCommentParent int64) ([]*Comment, error)
- func (o *Comment) FindByCommentPostID(_findByCommentPostID int64) ([]*Comment, error)
- func (o *Comment) FindByCommentType(_findByCommentType string) ([]*Comment, error)
- func (o *Comment) FindBySQL(s string) ([]*Comment, error)
- func (o *Comment) FindByUserId(_findByUserId int64) ([]*Comment, error)
- func (o *Comment) FromComment(m *Comment)
- func (o *Comment) FromDBValueMap(m map[string]DBValue) error
- func (o *Comment) GetCommentAgent() string
- func (o *Comment) GetCommentApproved() string
- func (o *Comment) GetCommentAuthor() string
- func (o *Comment) GetCommentAuthorEmail() string
- func (o *Comment) GetCommentAuthorIP() string
- func (o *Comment) GetCommentAuthorUrl() string
- func (o *Comment) GetCommentContent() string
- func (o *Comment) GetCommentDate() *DateTime
- func (o *Comment) GetCommentDateGmt() *DateTime
- func (o *Comment) GetCommentID() int64
- func (o *Comment) GetCommentKarma() int
- func (o *Comment) GetCommentParent() int64
- func (o *Comment) GetCommentPostID() int64
- func (o *Comment) GetCommentType() string
- func (o *Comment) GetPrimaryKeyName() string
- func (o *Comment) GetPrimaryKeyValue() int64
- func (o *Comment) GetUserId() int64
- func (o *Comment) Reload() error
- func (o *Comment) Save() error
- func (o *Comment) SetCommentAgent(arg string)
- func (o *Comment) SetCommentApproved(arg string)
- func (o *Comment) SetCommentAuthor(arg string)
- func (o *Comment) SetCommentAuthorEmail(arg string)
- func (o *Comment) SetCommentAuthorIP(arg string)
- func (o *Comment) SetCommentAuthorUrl(arg string)
- func (o *Comment) SetCommentContent(arg string)
- func (o *Comment) SetCommentDate(arg *DateTime)
- func (o *Comment) SetCommentDateGmt(arg *DateTime)
- func (o *Comment) SetCommentID(arg int64)
- func (o *Comment) SetCommentKarma(arg int)
- func (o *Comment) SetCommentParent(arg int64)
- func (o *Comment) SetCommentPostID(arg int64)
- func (o *Comment) SetCommentType(arg string)
- func (o *Comment) SetUserId(arg int64)
- func (o *Comment) Update() error
- func (o *Comment) UpdateCommentAgent(_updCommentAgent string) (int64, error)
- func (o *Comment) UpdateCommentApproved(_updCommentApproved string) (int64, error)
- func (o *Comment) UpdateCommentAuthor(_updCommentAuthor string) (int64, error)
- func (o *Comment) UpdateCommentAuthorEmail(_updCommentAuthorEmail string) (int64, error)
- func (o *Comment) UpdateCommentAuthorIP(_updCommentAuthorIP string) (int64, error)
- func (o *Comment) UpdateCommentAuthorUrl(_updCommentAuthorUrl string) (int64, error)
- func (o *Comment) UpdateCommentContent(_updCommentContent string) (int64, error)
- func (o *Comment) UpdateCommentDate(_updCommentDate *DateTime) (int64, error)
- func (o *Comment) UpdateCommentDateGmt(_updCommentDateGmt *DateTime) (int64, error)
- func (o *Comment) UpdateCommentKarma(_updCommentKarma int) (int64, error)
- func (o *Comment) UpdateCommentParent(_updCommentParent int64) (int64, error)
- func (o *Comment) UpdateCommentPostID(_updCommentPostID int64) (int64, error)
- func (o *Comment) UpdateCommentType(_updCommentType string) (int64, error)
- func (o *Comment) UpdateUserId(_updUserId int64) (int64, error)
- func (o *Comment) Where(s string) ([]*Comment, error)
- type CommentMeta
- func (o *CommentMeta) Create() error
- func (o *CommentMeta) Destroy() error
- func (o *CommentMeta) Find(_findByMetaId int64) (bool, error)
- func (o *CommentMeta) FindByCommentId(_findByCommentId int64) ([]*CommentMeta, error)
- func (o *CommentMeta) FindByMetaKey(_findByMetaKey string) ([]*CommentMeta, error)
- func (o *CommentMeta) FindByMetaValue(_findByMetaValue string) ([]*CommentMeta, error)
- func (o *CommentMeta) FindBySQL(s string) ([]*CommentMeta, error)
- func (o *CommentMeta) FromCommentMeta(m *CommentMeta)
- func (o *CommentMeta) FromDBValueMap(m map[string]DBValue) error
- func (o *CommentMeta) GetCommentId() int64
- func (o *CommentMeta) GetMetaId() int64
- func (o *CommentMeta) GetMetaKey() string
- func (o *CommentMeta) GetMetaValue() string
- func (o *CommentMeta) GetPrimaryKeyName() string
- func (o *CommentMeta) GetPrimaryKeyValue() int64
- func (o *CommentMeta) Reload() error
- func (o *CommentMeta) Save() error
- func (o *CommentMeta) SetCommentId(arg int64)
- func (o *CommentMeta) SetMetaId(arg int64)
- func (o *CommentMeta) SetMetaKey(arg string)
- func (o *CommentMeta) SetMetaValue(arg string)
- func (o *CommentMeta) Update() error
- func (o *CommentMeta) UpdateCommentId(_updCommentId int64) (int64, error)
- func (o *CommentMeta) UpdateMetaKey(_updMetaKey string) (int64, error)
- func (o *CommentMeta) UpdateMetaValue(_updMetaValue string) (int64, error)
- func (o *CommentMeta) Where(s string) ([]*CommentMeta, error)
- type DBValue
- type DateTime
- type Link
- func (o *Link) Create() error
- func (o *Link) Destroy() error
- func (o *Link) Find(_findByLinkId int64) (bool, error)
- func (o *Link) FindByLinkDescription(_findByLinkDescription string) ([]*Link, error)
- func (o *Link) FindByLinkImage(_findByLinkImage string) ([]*Link, error)
- func (o *Link) FindByLinkName(_findByLinkName string) ([]*Link, error)
- func (o *Link) FindByLinkNotes(_findByLinkNotes string) ([]*Link, error)
- func (o *Link) FindByLinkOwner(_findByLinkOwner int64) ([]*Link, error)
- func (o *Link) FindByLinkRating(_findByLinkRating int) ([]*Link, error)
- func (o *Link) FindByLinkRel(_findByLinkRel string) ([]*Link, error)
- func (o *Link) FindByLinkRss(_findByLinkRss string) ([]*Link, error)
- func (o *Link) FindByLinkTarget(_findByLinkTarget string) ([]*Link, error)
- func (o *Link) FindByLinkUpdated(_findByLinkUpdated *DateTime) ([]*Link, error)
- func (o *Link) FindByLinkUrl(_findByLinkUrl string) ([]*Link, error)
- func (o *Link) FindByLinkVisible(_findByLinkVisible string) ([]*Link, error)
- func (o *Link) FindBySQL(s string) ([]*Link, error)
- func (o *Link) FromDBValueMap(m map[string]DBValue) error
- func (o *Link) FromLink(m *Link)
- func (o *Link) GetLinkDescription() string
- func (o *Link) GetLinkId() int64
- func (o *Link) GetLinkImage() string
- func (o *Link) GetLinkName() string
- func (o *Link) GetLinkNotes() string
- func (o *Link) GetLinkOwner() int64
- func (o *Link) GetLinkRating() int
- func (o *Link) GetLinkRel() string
- func (o *Link) GetLinkRss() string
- func (o *Link) GetLinkTarget() string
- func (o *Link) GetLinkUpdated() *DateTime
- func (o *Link) GetLinkUrl() string
- func (o *Link) GetLinkVisible() string
- func (o *Link) GetPrimaryKeyName() string
- func (o *Link) GetPrimaryKeyValue() int64
- func (o *Link) Reload() error
- func (o *Link) Save() error
- func (o *Link) SetLinkDescription(arg string)
- func (o *Link) SetLinkId(arg int64)
- func (o *Link) SetLinkImage(arg string)
- func (o *Link) SetLinkName(arg string)
- func (o *Link) SetLinkNotes(arg string)
- func (o *Link) SetLinkOwner(arg int64)
- func (o *Link) SetLinkRating(arg int)
- func (o *Link) SetLinkRel(arg string)
- func (o *Link) SetLinkRss(arg string)
- func (o *Link) SetLinkTarget(arg string)
- func (o *Link) SetLinkUpdated(arg *DateTime)
- func (o *Link) SetLinkUrl(arg string)
- func (o *Link) SetLinkVisible(arg string)
- func (o *Link) Update() error
- func (o *Link) UpdateLinkDescription(_updLinkDescription string) (int64, error)
- func (o *Link) UpdateLinkImage(_updLinkImage string) (int64, error)
- func (o *Link) UpdateLinkName(_updLinkName string) (int64, error)
- func (o *Link) UpdateLinkNotes(_updLinkNotes string) (int64, error)
- func (o *Link) UpdateLinkOwner(_updLinkOwner int64) (int64, error)
- func (o *Link) UpdateLinkRating(_updLinkRating int) (int64, error)
- func (o *Link) UpdateLinkRel(_updLinkRel string) (int64, error)
- func (o *Link) UpdateLinkRss(_updLinkRss string) (int64, error)
- func (o *Link) UpdateLinkTarget(_updLinkTarget string) (int64, error)
- func (o *Link) UpdateLinkUpdated(_updLinkUpdated *DateTime) (int64, error)
- func (o *Link) UpdateLinkUrl(_updLinkUrl string) (int64, error)
- func (o *Link) UpdateLinkVisible(_updLinkVisible string) (int64, error)
- func (o *Link) Where(s string) ([]*Link, error)
- type LogFilter
- type MysqlAdapter
- func (a *MysqlAdapter) AffectedRows() int64
- func (a *MysqlAdapter) Close()
- func (a *MysqlAdapter) DatabasePrefix() string
- func (a *MysqlAdapter) Execute(q string) error
- func (a *MysqlAdapter) FromYAML(b []byte) error
- func (a *MysqlAdapter) LastInsertedId() int64
- func (a *MysqlAdapter) LogDebug(s string)
- func (a *MysqlAdapter) LogError(s error)
- func (a *MysqlAdapter) LogInfo(s string)
- func (a *MysqlAdapter) NewDBValue() DBValue
- func (a *MysqlAdapter) Oops(s string) error
- func (a *MysqlAdapter) Open(h, u, p, d string) error
- func (a *MysqlAdapter) Query(q string) ([]map[string]DBValue, error)
- func (a *MysqlAdapter) SafeString(s string) string
- func (a *MysqlAdapter) SetDebugLog(t io.Writer)
- func (a *MysqlAdapter) SetErrorLog(t io.Writer)
- func (a *MysqlAdapter) SetInfoLog(t io.Writer)
- func (a *MysqlAdapter) SetLogFilter(f LogFilter)
- func (a *MysqlAdapter) SetLogs(t io.Writer)
- type MysqlValue
- func (v *MysqlValue) AsDateTime() (*DateTime, error)
- func (v *MysqlValue) AsFloat32() (float32, error)
- func (v *MysqlValue) AsFloat64() (float64, error)
- func (v *MysqlValue) AsInt() (int, error)
- func (v *MysqlValue) AsInt32() (int32, error)
- func (v *MysqlValue) AsInt64() (int64, error)
- func (v *MysqlValue) AsString() (string, error)
- func (v *MysqlValue) SetInternalValue(key, value string)
- type Option
- func (o *Option) Create() error
- func (o *Option) Destroy() error
- func (o *Option) Find(_findByOptionId int64) (bool, error)
- func (o *Option) FindByAutoload(_findByAutoload string) ([]*Option, error)
- func (o *Option) FindByOptionName(_findByOptionName string) ([]*Option, error)
- func (o *Option) FindByOptionValue(_findByOptionValue string) ([]*Option, error)
- func (o *Option) FindBySQL(s string) ([]*Option, error)
- func (o *Option) FromDBValueMap(m map[string]DBValue) error
- func (o *Option) FromOption(m *Option)
- func (o *Option) GetAutoload() string
- func (o *Option) GetOptionId() int64
- func (o *Option) GetOptionName() string
- func (o *Option) GetOptionValue() string
- func (o *Option) GetPrimaryKeyName() string
- func (o *Option) GetPrimaryKeyValue() int64
- func (o *Option) Reload() error
- func (o *Option) Save() error
- func (o *Option) SetAutoload(arg string)
- func (o *Option) SetOptionId(arg int64)
- func (o *Option) SetOptionName(arg string)
- func (o *Option) SetOptionValue(arg string)
- func (o *Option) Update() error
- func (o *Option) UpdateAutoload(_updAutoload string) (int64, error)
- func (o *Option) UpdateOptionName(_updOptionName string) (int64, error)
- func (o *Option) UpdateOptionValue(_updOptionValue string) (int64, error)
- func (o *Option) Where(s string) ([]*Option, error)
- type Post
- func (o *Post) Create() error
- func (o *Post) Destroy() error
- func (o *Post) Find(_findByID int64) (bool, error)
- func (o *Post) FindByCommentCount(_findByCommentCount int64) ([]*Post, error)
- func (o *Post) FindByCommentStatus(_findByCommentStatus string) ([]*Post, error)
- func (o *Post) FindByGuid(_findByGuid string) ([]*Post, error)
- func (o *Post) FindByMenuOrder(_findByMenuOrder int) ([]*Post, error)
- func (o *Post) FindByPingStatus(_findByPingStatus string) ([]*Post, error)
- func (o *Post) FindByPinged(_findByPinged string) ([]*Post, error)
- func (o *Post) FindByPostAuthor(_findByPostAuthor int64) ([]*Post, error)
- func (o *Post) FindByPostContent(_findByPostContent string) ([]*Post, error)
- func (o *Post) FindByPostContentFiltered(_findByPostContentFiltered string) ([]*Post, error)
- func (o *Post) FindByPostDate(_findByPostDate *DateTime) ([]*Post, error)
- func (o *Post) FindByPostDateGmt(_findByPostDateGmt *DateTime) ([]*Post, error)
- func (o *Post) FindByPostExcerpt(_findByPostExcerpt string) ([]*Post, error)
- func (o *Post) FindByPostMetaKeyValue(k string, v string) ([]*Post, error)
- func (o *Post) FindByPostMimeType(_findByPostMimeType string) ([]*Post, error)
- func (o *Post) FindByPostModified(_findByPostModified *DateTime) ([]*Post, error)
- func (o *Post) FindByPostModifiedGmt(_findByPostModifiedGmt *DateTime) ([]*Post, error)
- func (o *Post) FindByPostName(_findByPostName string) ([]*Post, error)
- func (o *Post) FindByPostParent(_findByPostParent int64) ([]*Post, error)
- func (o *Post) FindByPostPassword(_findByPostPassword string) ([]*Post, error)
- func (o *Post) FindByPostStatus(_findByPostStatus string) ([]*Post, error)
- func (o *Post) FindByPostTitle(_findByPostTitle string) ([]*Post, error)
- func (o *Post) FindByPostType(_findByPostType string) ([]*Post, error)
- func (o *Post) FindBySQL(s string) ([]*Post, error)
- func (o *Post) FindByToPing(_findByToPing string) ([]*Post, error)
- func (o *Post) FromDBValueMap(m map[string]DBValue) error
- func (o *Post) FromPost(m *Post)
- func (o *Post) GetCommentCount() int64
- func (o *Post) GetCommentStatus() string
- func (o *Post) GetGuid() string
- func (o *Post) GetID() int64
- func (o *Post) GetMenuOrder() int
- func (o *Post) GetPingStatus() string
- func (o *Post) GetPinged() string
- func (o *Post) GetPostAuthor() int64
- func (o *Post) GetPostContent() string
- func (o *Post) GetPostContentFiltered() string
- func (o *Post) GetPostDate() *DateTime
- func (o *Post) GetPostDateGmt() *DateTime
- func (o *Post) GetPostExcerpt() string
- func (o *Post) GetPostMimeType() string
- func (o *Post) GetPostModified() *DateTime
- func (o *Post) GetPostModifiedGmt() *DateTime
- func (o *Post) GetPostName() string
- func (o *Post) GetPostParent() int64
- func (o *Post) GetPostPassword() string
- func (o *Post) GetPostStatus() string
- func (o *Post) GetPostTitle() string
- func (o *Post) GetPostType() string
- func (o *Post) GetPrimaryKeyName() string
- func (o *Post) GetPrimaryKeyValue() int64
- func (o *Post) GetToPing() string
- func (o *Post) Reload() error
- func (o *Post) Save() error
- func (o *Post) SetCommentCount(arg int64)
- func (o *Post) SetCommentStatus(arg string)
- func (o *Post) SetGuid(arg string)
- func (o *Post) SetID(arg int64)
- func (o *Post) SetMenuOrder(arg int)
- func (o *Post) SetPingStatus(arg string)
- func (o *Post) SetPinged(arg string)
- func (o *Post) SetPostAuthor(arg int64)
- func (o *Post) SetPostContent(arg string)
- func (o *Post) SetPostContentFiltered(arg string)
- func (o *Post) SetPostDate(arg *DateTime)
- func (o *Post) SetPostDateGmt(arg *DateTime)
- func (o *Post) SetPostExcerpt(arg string)
- func (o *Post) SetPostMimeType(arg string)
- func (o *Post) SetPostModified(arg *DateTime)
- func (o *Post) SetPostModifiedGmt(arg *DateTime)
- func (o *Post) SetPostName(arg string)
- func (o *Post) SetPostParent(arg int64)
- func (o *Post) SetPostPassword(arg string)
- func (o *Post) SetPostStatus(arg string)
- func (o *Post) SetPostTitle(arg string)
- func (o *Post) SetPostType(arg string)
- func (o *Post) SetToPing(arg string)
- func (o *Post) Update() error
- func (o *Post) UpdateCommentCount(_updCommentCount int64) (int64, error)
- func (o *Post) UpdateCommentStatus(_updCommentStatus string) (int64, error)
- func (o *Post) UpdateGuid(_updGuid string) (int64, error)
- func (o *Post) UpdateMenuOrder(_updMenuOrder int) (int64, error)
- func (o *Post) UpdatePingStatus(_updPingStatus string) (int64, error)
- func (o *Post) UpdatePinged(_updPinged string) (int64, error)
- func (o *Post) UpdatePostAuthor(_updPostAuthor int64) (int64, error)
- func (o *Post) UpdatePostContent(_updPostContent string) (int64, error)
- func (o *Post) UpdatePostContentFiltered(_updPostContentFiltered string) (int64, error)
- func (o *Post) UpdatePostDate(_updPostDate *DateTime) (int64, error)
- func (o *Post) UpdatePostDateGmt(_updPostDateGmt *DateTime) (int64, error)
- func (o *Post) UpdatePostExcerpt(_updPostExcerpt string) (int64, error)
- func (o *Post) UpdatePostMimeType(_updPostMimeType string) (int64, error)
- func (o *Post) UpdatePostModified(_updPostModified *DateTime) (int64, error)
- func (o *Post) UpdatePostModifiedGmt(_updPostModifiedGmt *DateTime) (int64, error)
- func (o *Post) UpdatePostName(_updPostName string) (int64, error)
- func (o *Post) UpdatePostParent(_updPostParent int64) (int64, error)
- func (o *Post) UpdatePostPassword(_updPostPassword string) (int64, error)
- func (o *Post) UpdatePostStatus(_updPostStatus string) (int64, error)
- func (o *Post) UpdatePostTitle(_updPostTitle string) (int64, error)
- func (o *Post) UpdatePostType(_updPostType string) (int64, error)
- func (o *Post) UpdateToPing(_updToPing string) (int64, error)
- func (o *Post) Where(s string) ([]*Post, error)
- type PostMeta
- func (o *PostMeta) Create() error
- func (o *PostMeta) Destroy() error
- func (o *PostMeta) Find(_findByMetaId int64) (bool, error)
- func (o *PostMeta) FindByKeyValue(k string, v string) ([]*PostMeta, error)
- func (o *PostMeta) FindByKeyValueWithPostId(k string, v string, pid int64) ([]*PostMeta, error)
- func (o *PostMeta) FindByMetaKey(_findByMetaKey string) ([]*PostMeta, error)
- func (o *PostMeta) FindByMetaValue(_findByMetaValue string) ([]*PostMeta, error)
- func (o *PostMeta) FindByPostId(_findByPostId int64) ([]*PostMeta, error)
- func (o *PostMeta) FindBySQL(s string) ([]*PostMeta, error)
- func (o *PostMeta) FromDBValueMap(m map[string]DBValue) error
- func (o *PostMeta) FromPostMeta(m *PostMeta)
- func (o *PostMeta) GetMetaId() int64
- func (o *PostMeta) GetMetaKey() string
- func (o *PostMeta) GetMetaValue() string
- func (o *PostMeta) GetPostId() int64
- func (o *PostMeta) GetPrimaryKeyName() string
- func (o *PostMeta) GetPrimaryKeyValue() int64
- func (o *PostMeta) Reload() error
- func (o *PostMeta) Save() error
- func (o *PostMeta) SetMetaId(arg int64)
- func (o *PostMeta) SetMetaKey(arg string)
- func (o *PostMeta) SetMetaValue(arg string)
- func (o *PostMeta) SetPostId(arg int64)
- func (o *PostMeta) Update() error
- func (o *PostMeta) UpdateMetaKey(_updMetaKey string) (int64, error)
- func (o *PostMeta) UpdateMetaValue(_updMetaValue string) (int64, error)
- func (o *PostMeta) UpdatePostId(_updPostId int64) (int64, error)
- func (o *PostMeta) Where(s string) ([]*PostMeta, error)
- type SafeStringFilter
- type Term
- func (o *Term) Create() error
- func (o *Term) Destroy() error
- func (o *Term) Find(_findByTermId int64) (bool, error)
- func (o *Term) FindByName(_findByName string) ([]*Term, error)
- func (o *Term) FindBySQL(s string) ([]*Term, error)
- func (o *Term) FindBySlug(_findBySlug string) ([]*Term, error)
- func (o *Term) FindByTermGroup(_findByTermGroup int64) ([]*Term, error)
- func (o *Term) FromDBValueMap(m map[string]DBValue) error
- func (o *Term) FromTerm(m *Term)
- func (o *Term) GetName() string
- func (o *Term) GetPrimaryKeyName() string
- func (o *Term) GetPrimaryKeyValue() int64
- func (o *Term) GetSlug() string
- func (o *Term) GetTermGroup() int64
- func (o *Term) GetTermId() int64
- func (o *Term) Reload() error
- func (o *Term) Save() error
- func (o *Term) SetName(arg string)
- func (o *Term) SetSlug(arg string)
- func (o *Term) SetTermGroup(arg int64)
- func (o *Term) SetTermId(arg int64)
- func (o *Term) Update() error
- func (o *Term) UpdateName(_updName string) (int64, error)
- func (o *Term) UpdateSlug(_updSlug string) (int64, error)
- func (o *Term) UpdateTermGroup(_updTermGroup int64) (int64, error)
- func (o *Term) Where(s string) ([]*Term, error)
- type TermRelationship
- func (o *TermRelationship) Create() error
- func (o *TermRelationship) Destroy() error
- func (o *TermRelationship) Find(termId int64, objectId int64) (bool, error)
- func (o *TermRelationship) FindByObjectId(_findByObjectId int64) ([]*TermRelationship, error)
- func (o *TermRelationship) FindBySQL(s string) ([]*TermRelationship, error)
- func (o *TermRelationship) FindByTermOrder(_findByTermOrder int) ([]*TermRelationship, error)
- func (o *TermRelationship) FromDBValueMap(m map[string]DBValue) error
- func (o *TermRelationship) FromTermRelationship(m *TermRelationship)
- func (o *TermRelationship) GetObjectId() int64
- func (o *TermRelationship) GetPrimaryKeyName() string
- func (o *TermRelationship) GetPrimaryKeyValue() int64
- func (o *TermRelationship) GetTermOrder() int
- func (o *TermRelationship) GetTermTaxonomyId() int64
- func (o *TermRelationship) Reload() error
- func (o *TermRelationship) Save() error
- func (o *TermRelationship) SetObjectId(arg int64)
- func (o *TermRelationship) SetTermOrder(arg int)
- func (o *TermRelationship) SetTermTaxonomyId(arg int64)
- func (o *TermRelationship) Update() error
- func (o *TermRelationship) UpdateObjectId(_updObjectId int64) (int64, error)
- func (o *TermRelationship) UpdateTermOrder(_updTermOrder int) (int64, error)
- func (o *TermRelationship) Where(s string) ([]*TermRelationship, error)
- type TermTaxonomy
- func (o *TermTaxonomy) Create() error
- func (o *TermTaxonomy) Destroy() error
- func (o *TermTaxonomy) Find(_findByTermTaxonomyId int64) (bool, error)
- func (o *TermTaxonomy) FindByCount(_findByCount int64) ([]*TermTaxonomy, error)
- func (o *TermTaxonomy) FindByDescription(_findByDescription string) ([]*TermTaxonomy, error)
- func (o *TermTaxonomy) FindByParent(_findByParent int64) ([]*TermTaxonomy, error)
- func (o *TermTaxonomy) FindBySQL(s string) ([]*TermTaxonomy, error)
- func (o *TermTaxonomy) FindByTaxonomy(_findByTaxonomy string) ([]*TermTaxonomy, error)
- func (o *TermTaxonomy) FindByTermId(_findByTermId int64) ([]*TermTaxonomy, error)
- func (o *TermTaxonomy) FromDBValueMap(m map[string]DBValue) error
- func (o *TermTaxonomy) FromTermTaxonomy(m *TermTaxonomy)
- func (o *TermTaxonomy) GetCount() int64
- func (o *TermTaxonomy) GetDescription() string
- func (o *TermTaxonomy) GetParent() int64
- func (o *TermTaxonomy) GetPrimaryKeyName() string
- func (o *TermTaxonomy) GetPrimaryKeyValue() int64
- func (o *TermTaxonomy) GetTaxonomy() string
- func (o *TermTaxonomy) GetTermId() int64
- func (o *TermTaxonomy) GetTermTaxonomyId() int64
- func (o *TermTaxonomy) Reload() error
- func (o *TermTaxonomy) Save() error
- func (o *TermTaxonomy) SetCount(arg int64)
- func (o *TermTaxonomy) SetDescription(arg string)
- func (o *TermTaxonomy) SetParent(arg int64)
- func (o *TermTaxonomy) SetTaxonomy(arg string)
- func (o *TermTaxonomy) SetTermId(arg int64)
- func (o *TermTaxonomy) SetTermTaxonomyId(arg int64)
- func (o *TermTaxonomy) Update() error
- func (o *TermTaxonomy) UpdateCount(_updCount int64) (int64, error)
- func (o *TermTaxonomy) UpdateDescription(_updDescription string) (int64, error)
- func (o *TermTaxonomy) UpdateParent(_updParent int64) (int64, error)
- func (o *TermTaxonomy) UpdateTaxonomy(_updTaxonomy string) (int64, error)
- func (o *TermTaxonomy) UpdateTermId(_updTermId int64) (int64, error)
- func (o *TermTaxonomy) Where(s string) ([]*TermTaxonomy, error)
- type UserMeta
- func (o *UserMeta) Create() error
- func (o *UserMeta) Destroy() error
- func (o *UserMeta) Find(_findByUMetaId int64) (bool, error)
- func (o *UserMeta) FindByMetaKey(_findByMetaKey string) ([]*UserMeta, error)
- func (o *UserMeta) FindByMetaValue(_findByMetaValue string) ([]*UserMeta, error)
- func (o *UserMeta) FindBySQL(s string) ([]*UserMeta, error)
- func (o *UserMeta) FindByUserId(_findByUserId int64) ([]*UserMeta, error)
- func (o *UserMeta) FromDBValueMap(m map[string]DBValue) error
- func (o *UserMeta) FromUserMeta(m *UserMeta)
- func (o *UserMeta) GetMetaKey() string
- func (o *UserMeta) GetMetaValue() string
- func (o *UserMeta) GetPrimaryKeyName() string
- func (o *UserMeta) GetPrimaryKeyValue() int64
- func (o *UserMeta) GetUMetaId() int64
- func (o *UserMeta) GetUserId() int64
- func (o *UserMeta) Reload() error
- func (o *UserMeta) Save() error
- func (o *UserMeta) SetMetaKey(arg string)
- func (o *UserMeta) SetMetaValue(arg string)
- func (o *UserMeta) SetUMetaId(arg int64)
- func (o *UserMeta) SetUserId(arg int64)
- func (o *UserMeta) Update() error
- func (o *UserMeta) UpdateMetaKey(_updMetaKey string) (int64, error)
- func (o *UserMeta) UpdateMetaValue(_updMetaValue string) (int64, error)
- func (o *UserMeta) UpdateUserId(_updUserId int64) (int64, error)
- func (o *UserMeta) Where(s string) ([]*UserMeta, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Adapter ¶
type Adapter interface { Open(string, string, string, string) error Close() Query(string) ([]map[string]DBValue, error) Execute(string) error LastInsertedId() int64 AffectedRows() int64 DatabasePrefix() string LogInfo(string) LogError(error) LogDebug(string) SetLogs(io.Writer) SetLogFilter(LogFilter) Oops(string) error SafeString(string) string NewDBValue() DBValue }
Adapter is the main Database interface which helps to separate the DB from the Models. This is not 100% just yet, and may never be. Eventually the Adapter will probably receive some arguments and a value map and build the Query internally
type Comment ¶
type Comment struct { CommentID int64 CommentPostID int64 CommentAuthor string CommentAuthorEmail string CommentAuthorUrl string CommentAuthorIP string CommentDate *DateTime CommentDateGmt *DateTime CommentContent string CommentKarma int CommentApproved string CommentAgent string CommentType string CommentParent int64 UserId int64 // Dirty markers for smart updates IsCommentIDDirty bool IsCommentPostIDDirty bool IsCommentAuthorDirty bool IsCommentAuthorEmailDirty bool IsCommentAuthorUrlDirty bool IsCommentAuthorIPDirty bool IsCommentDateDirty bool IsCommentDateGmtDirty bool IsCommentContentDirty bool IsCommentKarmaDirty bool IsCommentApprovedDirty bool IsCommentAgentDirty bool IsCommentTypeDirty bool IsCommentParentDirty bool IsUserIdDirty bool // contains filtered or unexported fields }
Comment is a Object Relational Mapping to the database table that represents it. In this case it is comments. The table name will be Sprintf'd to include the prefix you define in your YAML configuration for the Adapter.
func NewComment ¶
NewComment binds an Adapter to a new instance of Comment and sets up the _table and primary keys
func (*Comment) Create ¶
Create inserts the model. Calling Save will call this function automatically for new models
func (*Comment) Find ¶
Find searchs against the database table field comment_ID and will return bool,error This method is a programatically generated finder for Comment
Note that Find returns a bool of true|false if found or not, not err, in the case of found == true, the instance data will be filled out!
A call to find ALWAYS overwrites the model you call Find on i.e. receiver is a pointer!
```go
m := NewComment(a) found,err := m.Find(23) .. handle err if found == false { // handle found } ... do what you want with m here
```
func (*Comment) FindByCommentAgent ¶
FindByCommentAgent searchs against the database table field comment_agent and will return []*Comment,error This method is a programatically generated finder for Comment
```go
m := NewComment(a) results,err := m.FindByCommentAgent(...) // handle err for i,r := results { // now r is an instance of Comment }
```
func (*Comment) FindByCommentApproved ¶
FindByCommentApproved searchs against the database table field comment_approved and will return []*Comment,error This method is a programatically generated finder for Comment
```go
m := NewComment(a) results,err := m.FindByCommentApproved(...) // handle err for i,r := results { // now r is an instance of Comment }
```
func (*Comment) FindByCommentAuthor ¶
FindByCommentAuthor searchs against the database table field comment_author and will return []*Comment,error This method is a programatically generated finder for Comment
```go
m := NewComment(a) results,err := m.FindByCommentAuthor(...) // handle err for i,r := results { // now r is an instance of Comment }
```
func (*Comment) FindByCommentAuthorEmail ¶
FindByCommentAuthorEmail searchs against the database table field comment_author_email and will return []*Comment,error This method is a programatically generated finder for Comment
```go
m := NewComment(a) results,err := m.FindByCommentAuthorEmail(...) // handle err for i,r := results { // now r is an instance of Comment }
```
func (*Comment) FindByCommentAuthorIP ¶
FindByCommentAuthorIP searchs against the database table field comment_author_IP and will return []*Comment,error This method is a programatically generated finder for Comment
```go
m := NewComment(a) results,err := m.FindByCommentAuthorIP(...) // handle err for i,r := results { // now r is an instance of Comment }
```
func (*Comment) FindByCommentAuthorUrl ¶
FindByCommentAuthorUrl searchs against the database table field comment_author_url and will return []*Comment,error This method is a programatically generated finder for Comment
```go
m := NewComment(a) results,err := m.FindByCommentAuthorUrl(...) // handle err for i,r := results { // now r is an instance of Comment }
```
func (*Comment) FindByCommentContent ¶
FindByCommentContent searchs against the database table field comment_content and will return []*Comment,error This method is a programatically generated finder for Comment
```go
m := NewComment(a) results,err := m.FindByCommentContent(...) // handle err for i,r := results { // now r is an instance of Comment }
```
func (*Comment) FindByCommentDate ¶
FindByCommentDate searchs against the database table field comment_date and will return []*Comment,error This method is a programatically generated finder for Comment
```go
m := NewComment(a) results,err := m.FindByCommentDate(...) // handle err for i,r := results { // now r is an instance of Comment }
```
func (*Comment) FindByCommentDateGmt ¶
FindByCommentDateGmt searchs against the database table field comment_date_gmt and will return []*Comment,error This method is a programatically generated finder for Comment
```go
m := NewComment(a) results,err := m.FindByCommentDateGmt(...) // handle err for i,r := results { // now r is an instance of Comment }
```
func (*Comment) FindByCommentKarma ¶
FindByCommentKarma searchs against the database table field comment_karma and will return []*Comment,error This method is a programatically generated finder for Comment
```go
m := NewComment(a) results,err := m.FindByCommentKarma(...) // handle err for i,r := results { // now r is an instance of Comment }
```
func (*Comment) FindByCommentParent ¶
FindByCommentParent searchs against the database table field comment_parent and will return []*Comment,error This method is a programatically generated finder for Comment
```go
m := NewComment(a) results,err := m.FindByCommentParent(...) // handle err for i,r := results { // now r is an instance of Comment }
```
func (*Comment) FindByCommentPostID ¶
FindByCommentPostID searchs against the database table field comment_post_ID and will return []*Comment,error This method is a programatically generated finder for Comment
```go
m := NewComment(a) results,err := m.FindByCommentPostID(...) // handle err for i,r := results { // now r is an instance of Comment }
```
func (*Comment) FindByCommentType ¶
FindByCommentType searchs against the database table field comment_type and will return []*Comment,error This method is a programatically generated finder for Comment
```go
m := NewComment(a) results,err := m.FindByCommentType(...) // handle err for i,r := results { // now r is an instance of Comment }
```
func (*Comment) FindByUserId ¶
FindByUserId searchs against the database table field user_id and will return []*Comment,error This method is a programatically generated finder for Comment
```go
m := NewComment(a) results,err := m.FindByUserId(...) // handle err for i,r := results { // now r is an instance of Comment }
```
func (*Comment) FromComment ¶
FromComment A kind of Clone function for Comment
func (*Comment) FromDBValueMap ¶
FromDBValueMap Converts a DBValueMap returned from Adapter.Query to a Comment
func (*Comment) GetCommentAgent ¶
GetCommentAgent returns the value of Comment.CommentAgent
func (*Comment) GetCommentApproved ¶
GetCommentApproved returns the value of Comment.CommentApproved
func (*Comment) GetCommentAuthor ¶
GetCommentAuthor returns the value of Comment.CommentAuthor
func (*Comment) GetCommentAuthorEmail ¶
GetCommentAuthorEmail returns the value of Comment.CommentAuthorEmail
func (*Comment) GetCommentAuthorIP ¶
GetCommentAuthorIP returns the value of Comment.CommentAuthorIP
func (*Comment) GetCommentAuthorUrl ¶
GetCommentAuthorUrl returns the value of Comment.CommentAuthorUrl
func (*Comment) GetCommentContent ¶
GetCommentContent returns the value of Comment.CommentContent
func (*Comment) GetCommentDate ¶
GetCommentDate returns the value of Comment.CommentDate
func (*Comment) GetCommentDateGmt ¶
GetCommentDateGmt returns the value of Comment.CommentDateGmt
func (*Comment) GetCommentID ¶
GetCommentID returns the value of Comment.CommentID
func (*Comment) GetCommentKarma ¶
GetCommentKarma returns the value of Comment.CommentKarma
func (*Comment) GetCommentParent ¶
GetCommentParent returns the value of Comment.CommentParent
func (*Comment) GetCommentPostID ¶
GetCommentPostID returns the value of Comment.CommentPostID
func (*Comment) GetCommentType ¶
GetCommentType returns the value of Comment.CommentType
func (*Comment) GetPrimaryKeyName ¶
GetPrimaryKeyName returns the DB field name
func (*Comment) GetPrimaryKeyValue ¶
GetPrimaryKeyValue returns the value, usually int64 of the PrimaryKey
func (*Comment) SetCommentAgent ¶
SetCommentAgent sets and marks as dirty the value of Comment.CommentAgent
func (*Comment) SetCommentApproved ¶
SetCommentApproved sets and marks as dirty the value of Comment.CommentApproved
func (*Comment) SetCommentAuthor ¶
SetCommentAuthor sets and marks as dirty the value of Comment.CommentAuthor
func (*Comment) SetCommentAuthorEmail ¶
SetCommentAuthorEmail sets and marks as dirty the value of Comment.CommentAuthorEmail
func (*Comment) SetCommentAuthorIP ¶
SetCommentAuthorIP sets and marks as dirty the value of Comment.CommentAuthorIP
func (*Comment) SetCommentAuthorUrl ¶
SetCommentAuthorUrl sets and marks as dirty the value of Comment.CommentAuthorUrl
func (*Comment) SetCommentContent ¶
SetCommentContent sets and marks as dirty the value of Comment.CommentContent
func (*Comment) SetCommentDate ¶
SetCommentDate sets and marks as dirty the value of Comment.CommentDate
func (*Comment) SetCommentDateGmt ¶
SetCommentDateGmt sets and marks as dirty the value of Comment.CommentDateGmt
func (*Comment) SetCommentID ¶
SetCommentID sets and marks as dirty the value of Comment.CommentID
func (*Comment) SetCommentKarma ¶
SetCommentKarma sets and marks as dirty the value of Comment.CommentKarma
func (*Comment) SetCommentParent ¶
SetCommentParent sets and marks as dirty the value of Comment.CommentParent
func (*Comment) SetCommentPostID ¶
SetCommentPostID sets and marks as dirty the value of Comment.CommentPostID
func (*Comment) SetCommentType ¶
SetCommentType sets and marks as dirty the value of Comment.CommentType
func (*Comment) Update ¶
Update is a dynamic updater, it considers whether or not a field is 'dirty' and needs to be updated. Will only work if you use the Getters and Setters
func (*Comment) UpdateCommentAgent ¶
UpdateCommentAgent an immediate DB Query to update a single column, in this case comment_agent
func (*Comment) UpdateCommentApproved ¶
UpdateCommentApproved an immediate DB Query to update a single column, in this case comment_approved
func (*Comment) UpdateCommentAuthor ¶
UpdateCommentAuthor an immediate DB Query to update a single column, in this case comment_author
func (*Comment) UpdateCommentAuthorEmail ¶
UpdateCommentAuthorEmail an immediate DB Query to update a single column, in this case comment_author_email
func (*Comment) UpdateCommentAuthorIP ¶
UpdateCommentAuthorIP an immediate DB Query to update a single column, in this case comment_author_IP
func (*Comment) UpdateCommentAuthorUrl ¶
UpdateCommentAuthorUrl an immediate DB Query to update a single column, in this case comment_author_url
func (*Comment) UpdateCommentContent ¶
UpdateCommentContent an immediate DB Query to update a single column, in this case comment_content
func (*Comment) UpdateCommentDate ¶
UpdateCommentDate an immediate DB Query to update a single column, in this case comment_date
func (*Comment) UpdateCommentDateGmt ¶
UpdateCommentDateGmt an immediate DB Query to update a single column, in this case comment_date_gmt
func (*Comment) UpdateCommentKarma ¶
UpdateCommentKarma an immediate DB Query to update a single column, in this case comment_karma
func (*Comment) UpdateCommentParent ¶
UpdateCommentParent an immediate DB Query to update a single column, in this case comment_parent
func (*Comment) UpdateCommentPostID ¶
UpdateCommentPostID an immediate DB Query to update a single column, in this case comment_post_ID
func (*Comment) UpdateCommentType ¶
UpdateCommentType an immediate DB Query to update a single column, in this case comment_type
func (*Comment) UpdateUserId ¶
UpdateUserId an immediate DB Query to update a single column, in this case user_id
type CommentMeta ¶
type CommentMeta struct { MetaId int64 CommentId int64 MetaKey string MetaValue string // Dirty markers for smart updates IsMetaIdDirty bool IsCommentIdDirty bool IsMetaKeyDirty bool IsMetaValueDirty bool // contains filtered or unexported fields }
CommentMeta is a Object Relational Mapping to the database table that represents it. In this case it is commentmeta. The table name will be Sprintf'd to include the prefix you define in your YAML configuration for the Adapter.
func NewCommentMeta ¶
func NewCommentMeta(a Adapter) *CommentMeta
NewCommentMeta binds an Adapter to a new instance of CommentMeta and sets up the _table and primary keys
func (*CommentMeta) Create ¶
func (o *CommentMeta) Create() error
Create inserts the model. Calling Save will call this function automatically for new models
func (*CommentMeta) Find ¶
func (o *CommentMeta) Find(_findByMetaId int64) (bool, error)
Find searchs against the database table field meta_id and will return bool,error This method is a programatically generated finder for CommentMeta
Note that Find returns a bool of true|false if found or not, not err, in the case of found == true, the instance data will be filled out!
A call to find ALWAYS overwrites the model you call Find on i.e. receiver is a pointer!
```go
m := NewCommentMeta(a) found,err := m.Find(23) .. handle err if found == false { // handle found } ... do what you want with m here
```
func (*CommentMeta) FindByCommentId ¶
func (o *CommentMeta) FindByCommentId(_findByCommentId int64) ([]*CommentMeta, error)
FindByCommentId searchs against the database table field comment_id and will return []*CommentMeta,error This method is a programatically generated finder for CommentMeta
```go
m := NewCommentMeta(a) results,err := m.FindByCommentId(...) // handle err for i,r := results { // now r is an instance of CommentMeta }
```
func (*CommentMeta) FindByMetaKey ¶
func (o *CommentMeta) FindByMetaKey(_findByMetaKey string) ([]*CommentMeta, error)
FindByMetaKey searchs against the database table field meta_key and will return []*CommentMeta,error This method is a programatically generated finder for CommentMeta
```go
m := NewCommentMeta(a) results,err := m.FindByMetaKey(...) // handle err for i,r := results { // now r is an instance of CommentMeta }
```
func (*CommentMeta) FindByMetaValue ¶
func (o *CommentMeta) FindByMetaValue(_findByMetaValue string) ([]*CommentMeta, error)
FindByMetaValue searchs against the database table field meta_value and will return []*CommentMeta,error This method is a programatically generated finder for CommentMeta
```go
m := NewCommentMeta(a) results,err := m.FindByMetaValue(...) // handle err for i,r := results { // now r is an instance of CommentMeta }
```
func (*CommentMeta) FindBySQL ¶
func (o *CommentMeta) FindBySQL(s string) ([]*CommentMeta, error)
FindBySQL allows you to search using a complete SQL string
func (*CommentMeta) FromCommentMeta ¶
func (o *CommentMeta) FromCommentMeta(m *CommentMeta)
FromCommentMeta A kind of Clone function for CommentMeta
func (*CommentMeta) FromDBValueMap ¶
func (o *CommentMeta) FromDBValueMap(m map[string]DBValue) error
FromDBValueMap Converts a DBValueMap returned from Adapter.Query to a CommentMeta
func (*CommentMeta) GetCommentId ¶
func (o *CommentMeta) GetCommentId() int64
GetCommentId returns the value of CommentMeta.CommentId
func (*CommentMeta) GetMetaId ¶
func (o *CommentMeta) GetMetaId() int64
GetMetaId returns the value of CommentMeta.MetaId
func (*CommentMeta) GetMetaKey ¶
func (o *CommentMeta) GetMetaKey() string
GetMetaKey returns the value of CommentMeta.MetaKey
func (*CommentMeta) GetMetaValue ¶
func (o *CommentMeta) GetMetaValue() string
GetMetaValue returns the value of CommentMeta.MetaValue
func (*CommentMeta) GetPrimaryKeyName ¶
func (o *CommentMeta) GetPrimaryKeyName() string
GetPrimaryKeyName returns the DB field name
func (*CommentMeta) GetPrimaryKeyValue ¶
func (o *CommentMeta) GetPrimaryKeyValue() int64
GetPrimaryKeyValue returns the value, usually int64 of the PrimaryKey
func (*CommentMeta) Reload ¶
func (o *CommentMeta) Reload() error
Reload A function to forcibly reload CommentMeta
func (*CommentMeta) Save ¶
func (o *CommentMeta) Save() error
Save is a dynamic saver 'inherited' by all models
func (*CommentMeta) SetCommentId ¶
func (o *CommentMeta) SetCommentId(arg int64)
SetCommentId sets and marks as dirty the value of CommentMeta.CommentId
func (*CommentMeta) SetMetaId ¶
func (o *CommentMeta) SetMetaId(arg int64)
SetMetaId sets and marks as dirty the value of CommentMeta.MetaId
func (*CommentMeta) SetMetaKey ¶
func (o *CommentMeta) SetMetaKey(arg string)
SetMetaKey sets and marks as dirty the value of CommentMeta.MetaKey
func (*CommentMeta) SetMetaValue ¶
func (o *CommentMeta) SetMetaValue(arg string)
SetMetaValue sets and marks as dirty the value of CommentMeta.MetaValue
func (*CommentMeta) Update ¶
func (o *CommentMeta) Update() error
Update is a dynamic updater, it considers whether or not a field is 'dirty' and needs to be updated. Will only work if you use the Getters and Setters
func (*CommentMeta) UpdateCommentId ¶
func (o *CommentMeta) UpdateCommentId(_updCommentId int64) (int64, error)
UpdateCommentId an immediate DB Query to update a single column, in this case comment_id
func (*CommentMeta) UpdateMetaKey ¶
func (o *CommentMeta) UpdateMetaKey(_updMetaKey string) (int64, error)
UpdateMetaKey an immediate DB Query to update a single column, in this case meta_key
func (*CommentMeta) UpdateMetaValue ¶
func (o *CommentMeta) UpdateMetaValue(_updMetaValue string) (int64, error)
UpdateMetaValue an immediate DB Query to update a single column, in this case meta_value
func (*CommentMeta) Where ¶
func (o *CommentMeta) Where(s string) ([]*CommentMeta, error)
Where is a shortcut to FindBySql, in this case you only specify the WHERE clause, such as m.Where(`ID IN (23,25)`)
type DBValue ¶
type DBValue interface { AsInt() (int, error) AsInt32() (int32, error) AsInt64() (int64, error) AsFloat32() (float32, error) AsFloat64() (float64, error) AsString() (string, error) AsDateTime() (*DateTime, error) SetInternalValue(string, string) }
DBValue Provides a tidy way to convert string values from the DB into go values
type DateTime ¶
type DateTime struct { // The day as an int Day int // the month, as an int Month int // The year, as an int Year int // the hours, in 24 hour format Hours int // the minutes Minutes int // the seconds Seconds int // contains filtered or unexported fields }
DateTime A simple struct to represent DateTime fields
func (*DateTime) FromString ¶
FromString Converts a string like 0000-00-00 00:00:00 into a DateTime
type Link ¶
type Link struct { LinkId int64 LinkUrl string LinkName string LinkImage string LinkTarget string LinkDescription string LinkVisible string LinkOwner int64 LinkRating int LinkUpdated *DateTime LinkRel string LinkNotes string LinkRss string // Dirty markers for smart updates IsLinkIdDirty bool IsLinkUrlDirty bool IsLinkNameDirty bool IsLinkImageDirty bool IsLinkTargetDirty bool IsLinkDescriptionDirty bool IsLinkVisibleDirty bool IsLinkOwnerDirty bool IsLinkRatingDirty bool IsLinkUpdatedDirty bool IsLinkRelDirty bool IsLinkNotesDirty bool IsLinkRssDirty bool // contains filtered or unexported fields }
Link is a Object Relational Mapping to the database table that represents it. In this case it is links. The table name will be Sprintf'd to include the prefix you define in your YAML configuration for the Adapter.
func NewLink ¶
NewLink binds an Adapter to a new instance of Link and sets up the _table and primary keys
func (*Link) Create ¶
Create inserts the model. Calling Save will call this function automatically for new models
func (*Link) Find ¶
Find searchs against the database table field link_id and will return bool,error This method is a programatically generated finder for Link
Note that Find returns a bool of true|false if found or not, not err, in the case of found == true, the instance data will be filled out!
A call to find ALWAYS overwrites the model you call Find on i.e. receiver is a pointer!
```go
m := NewLink(a) found,err := m.Find(23) .. handle err if found == false { // handle found } ... do what you want with m here
```
func (*Link) FindByLinkDescription ¶
FindByLinkDescription searchs against the database table field link_description and will return []*Link,error This method is a programatically generated finder for Link
```go
m := NewLink(a) results,err := m.FindByLinkDescription(...) // handle err for i,r := results { // now r is an instance of Link }
```
func (*Link) FindByLinkImage ¶
FindByLinkImage searchs against the database table field link_image and will return []*Link,error This method is a programatically generated finder for Link
```go
m := NewLink(a) results,err := m.FindByLinkImage(...) // handle err for i,r := results { // now r is an instance of Link }
```
func (*Link) FindByLinkName ¶
FindByLinkName searchs against the database table field link_name and will return []*Link,error This method is a programatically generated finder for Link
```go
m := NewLink(a) results,err := m.FindByLinkName(...) // handle err for i,r := results { // now r is an instance of Link }
```
func (*Link) FindByLinkNotes ¶
FindByLinkNotes searchs against the database table field link_notes and will return []*Link,error This method is a programatically generated finder for Link
```go
m := NewLink(a) results,err := m.FindByLinkNotes(...) // handle err for i,r := results { // now r is an instance of Link }
```
func (*Link) FindByLinkOwner ¶
FindByLinkOwner searchs against the database table field link_owner and will return []*Link,error This method is a programatically generated finder for Link
```go
m := NewLink(a) results,err := m.FindByLinkOwner(...) // handle err for i,r := results { // now r is an instance of Link }
```
func (*Link) FindByLinkRating ¶
FindByLinkRating searchs against the database table field link_rating and will return []*Link,error This method is a programatically generated finder for Link
```go
m := NewLink(a) results,err := m.FindByLinkRating(...) // handle err for i,r := results { // now r is an instance of Link }
```
func (*Link) FindByLinkRel ¶
FindByLinkRel searchs against the database table field link_rel and will return []*Link,error This method is a programatically generated finder for Link
```go
m := NewLink(a) results,err := m.FindByLinkRel(...) // handle err for i,r := results { // now r is an instance of Link }
```
func (*Link) FindByLinkRss ¶
FindByLinkRss searchs against the database table field link_rss and will return []*Link,error This method is a programatically generated finder for Link
```go
m := NewLink(a) results,err := m.FindByLinkRss(...) // handle err for i,r := results { // now r is an instance of Link }
```
func (*Link) FindByLinkTarget ¶
FindByLinkTarget searchs against the database table field link_target and will return []*Link,error This method is a programatically generated finder for Link
```go
m := NewLink(a) results,err := m.FindByLinkTarget(...) // handle err for i,r := results { // now r is an instance of Link }
```
func (*Link) FindByLinkUpdated ¶
FindByLinkUpdated searchs against the database table field link_updated and will return []*Link,error This method is a programatically generated finder for Link
```go
m := NewLink(a) results,err := m.FindByLinkUpdated(...) // handle err for i,r := results { // now r is an instance of Link }
```
func (*Link) FindByLinkUrl ¶
FindByLinkUrl searchs against the database table field link_url and will return []*Link,error This method is a programatically generated finder for Link
```go
m := NewLink(a) results,err := m.FindByLinkUrl(...) // handle err for i,r := results { // now r is an instance of Link }
```
func (*Link) FindByLinkVisible ¶
FindByLinkVisible searchs against the database table field link_visible and will return []*Link,error This method is a programatically generated finder for Link
```go
m := NewLink(a) results,err := m.FindByLinkVisible(...) // handle err for i,r := results { // now r is an instance of Link }
```
func (*Link) FromDBValueMap ¶
FromDBValueMap Converts a DBValueMap returned from Adapter.Query to a Link
func (*Link) GetLinkDescription ¶
GetLinkDescription returns the value of Link.LinkDescription
func (*Link) GetLinkImage ¶
GetLinkImage returns the value of Link.LinkImage
func (*Link) GetLinkName ¶
GetLinkName returns the value of Link.LinkName
func (*Link) GetLinkNotes ¶
GetLinkNotes returns the value of Link.LinkNotes
func (*Link) GetLinkOwner ¶
GetLinkOwner returns the value of Link.LinkOwner
func (*Link) GetLinkRating ¶
GetLinkRating returns the value of Link.LinkRating
func (*Link) GetLinkRel ¶
GetLinkRel returns the value of Link.LinkRel
func (*Link) GetLinkRss ¶
GetLinkRss returns the value of Link.LinkRss
func (*Link) GetLinkTarget ¶
GetLinkTarget returns the value of Link.LinkTarget
func (*Link) GetLinkUpdated ¶
GetLinkUpdated returns the value of Link.LinkUpdated
func (*Link) GetLinkUrl ¶
GetLinkUrl returns the value of Link.LinkUrl
func (*Link) GetLinkVisible ¶
GetLinkVisible returns the value of Link.LinkVisible
func (*Link) GetPrimaryKeyName ¶
GetPrimaryKeyName returns the DB field name
func (*Link) GetPrimaryKeyValue ¶
GetPrimaryKeyValue returns the value, usually int64 of the PrimaryKey
func (*Link) SetLinkDescription ¶
SetLinkDescription sets and marks as dirty the value of Link.LinkDescription
func (*Link) SetLinkImage ¶
SetLinkImage sets and marks as dirty the value of Link.LinkImage
func (*Link) SetLinkName ¶
SetLinkName sets and marks as dirty the value of Link.LinkName
func (*Link) SetLinkNotes ¶
SetLinkNotes sets and marks as dirty the value of Link.LinkNotes
func (*Link) SetLinkOwner ¶
SetLinkOwner sets and marks as dirty the value of Link.LinkOwner
func (*Link) SetLinkRating ¶
SetLinkRating sets and marks as dirty the value of Link.LinkRating
func (*Link) SetLinkRel ¶
SetLinkRel sets and marks as dirty the value of Link.LinkRel
func (*Link) SetLinkRss ¶
SetLinkRss sets and marks as dirty the value of Link.LinkRss
func (*Link) SetLinkTarget ¶
SetLinkTarget sets and marks as dirty the value of Link.LinkTarget
func (*Link) SetLinkUpdated ¶
SetLinkUpdated sets and marks as dirty the value of Link.LinkUpdated
func (*Link) SetLinkUrl ¶
SetLinkUrl sets and marks as dirty the value of Link.LinkUrl
func (*Link) SetLinkVisible ¶
SetLinkVisible sets and marks as dirty the value of Link.LinkVisible
func (*Link) Update ¶
Update is a dynamic updater, it considers whether or not a field is 'dirty' and needs to be updated. Will only work if you use the Getters and Setters
func (*Link) UpdateLinkDescription ¶
UpdateLinkDescription an immediate DB Query to update a single column, in this case link_description
func (*Link) UpdateLinkImage ¶
UpdateLinkImage an immediate DB Query to update a single column, in this case link_image
func (*Link) UpdateLinkName ¶
UpdateLinkName an immediate DB Query to update a single column, in this case link_name
func (*Link) UpdateLinkNotes ¶
UpdateLinkNotes an immediate DB Query to update a single column, in this case link_notes
func (*Link) UpdateLinkOwner ¶
UpdateLinkOwner an immediate DB Query to update a single column, in this case link_owner
func (*Link) UpdateLinkRating ¶
UpdateLinkRating an immediate DB Query to update a single column, in this case link_rating
func (*Link) UpdateLinkRel ¶
UpdateLinkRel an immediate DB Query to update a single column, in this case link_rel
func (*Link) UpdateLinkRss ¶
UpdateLinkRss an immediate DB Query to update a single column, in this case link_rss
func (*Link) UpdateLinkTarget ¶
UpdateLinkTarget an immediate DB Query to update a single column, in this case link_target
func (*Link) UpdateLinkUpdated ¶
UpdateLinkUpdated an immediate DB Query to update a single column, in this case link_updated
func (*Link) UpdateLinkUrl ¶
UpdateLinkUrl an immediate DB Query to update a single column, in this case link_url
func (*Link) UpdateLinkVisible ¶
UpdateLinkVisible an immediate DB Query to update a single column, in this case link_visible
type LogFilter ¶
LogFilter is an anonymous function that that receives the log tag and string and allows you to filter out extraneous lines when trying to find bugs.
type MysqlAdapter ¶
type MysqlAdapter struct { // The host, localhost is valid here, or 127.0.0.1 // if you use localhost, the system won't use TCP Host string `yaml:"host"` // The database username User string `yaml:"user"` // The database password Pass string `yaml:"pass"` // The database name Database string `yaml:"database"` // A prefix, if any - can be blank DBPrefix string `yaml:"prefix"` // contains filtered or unexported fields }
MysqlAdapter is the MySql implementation
func NewMysqlAdapter ¶
func NewMysqlAdapter(pre string) *MysqlAdapter
NewMysqlAdapter returns a pointer to MysqlAdapter
func NewMysqlAdapterEx ¶
func NewMysqlAdapterEx(fname string) (*MysqlAdapter, error)
NewMysqlAdapterEx sets everything up based on your YAML config Args: fname is a string path to a YAML config file This function will attempt to Open the database defined in that file. Example file:
host: "localhost" user: "dbuser" pass: "dbuserpass" database: "my_db" prefix: "wp_"
func (*MysqlAdapter) AffectedRows ¶
func (a *MysqlAdapter) AffectedRows() int64
AffectedRows Grab the number of AffectedRows
func (*MysqlAdapter) Close ¶
func (a *MysqlAdapter) Close()
Close This should be called in your application with a defer a.Close() or something similar. Closing is not automatic!
func (*MysqlAdapter) DatabasePrefix ¶
func (a *MysqlAdapter) DatabasePrefix() string
DatabasePrefix Get the DatabasePrefix from the Adapter
func (*MysqlAdapter) Execute ¶
func (a *MysqlAdapter) Execute(q string) error
Execute For UPDATE and INSERT calls, i.e. nothing that returns a result set.
func (*MysqlAdapter) FromYAML ¶
func (a *MysqlAdapter) FromYAML(b []byte) error
FromYAML Set the Adapter's members from a YAML file
func (*MysqlAdapter) LastInsertedId ¶
func (a *MysqlAdapter) LastInsertedId() int64
LastInsertedId Grab the last auto_incremented id
func (*MysqlAdapter) LogDebug ¶
func (a *MysqlAdapter) LogDebug(s string)
LogDebug Tags the string with DEBUG and puts it into _debugLog.
func (*MysqlAdapter) LogError ¶
func (a *MysqlAdapter) LogError(s error)
LogError Tags the string with ERROR and puts it into _errorLog.
func (*MysqlAdapter) LogInfo ¶
func (a *MysqlAdapter) LogInfo(s string)
LogInfo Tags the string with INFO and puts it into _infoLog.
func (*MysqlAdapter) NewDBValue ¶
func (a *MysqlAdapter) NewDBValue() DBValue
NewDBValue Creates a new DBValue, mostly used internally, but you may wish to use it in special circumstances.
func (*MysqlAdapter) Oops ¶
func (a *MysqlAdapter) Oops(s string) error
Oops A function for catching errors generated by the library and funneling them to the log files
func (*MysqlAdapter) Open ¶
func (a *MysqlAdapter) Open(h, u, p, d string) error
Open Opens the database connection. Be sure to use a.Close() as closing is NOT handled for you.
func (*MysqlAdapter) Query ¶
func (a *MysqlAdapter) Query(q string) ([]map[string]DBValue, error)
Query The generay Query function, i.e. SQL that returns results, as opposed to an INSERT or UPDATE which uses Execute.
func (*MysqlAdapter) SafeString ¶
func (a *MysqlAdapter) SafeString(s string) string
SafeString Not implemented yet, but soon.
func (*MysqlAdapter) SetDebugLog ¶
func (a *MysqlAdapter) SetDebugLog(t io.Writer)
SetDebugLog Sets the _debugLog to the io.Writer, use ioutil.Discard if you don't want this one at all.
func (*MysqlAdapter) SetErrorLog ¶
func (a *MysqlAdapter) SetErrorLog(t io.Writer)
SetErrorLog Sets the _errorLog to the io.Writer, use ioutil.Discard if you don't want this one at all.
func (*MysqlAdapter) SetInfoLog ¶
func (a *MysqlAdapter) SetInfoLog(t io.Writer)
SetInfoLog Sets the _infoLog to the io.Writer, use ioutil.Discard if you don't want this one at all.
func (*MysqlAdapter) SetLogFilter ¶
func (a *MysqlAdapter) SetLogFilter(f LogFilter)
SetLogFilter sets the LogFilter to a function. This is only useful if you are debugging, or you want to reformat the log data.
func (*MysqlAdapter) SetLogs ¶
func (a *MysqlAdapter) SetLogs(t io.Writer)
SetLogs Sets ALL logs to the io.Writer, use ioutil.Discard if you don't want this one at all.
type MysqlValue ¶
type MysqlValue struct {
// contains filtered or unexported fields
}
MysqlValue Implements DBValue for MySQL, you'll generally not interact directly with this type, but it is there for special cases.
func NewMysqlValue ¶
func NewMysqlValue(a Adapter) *MysqlValue
NewMysqlValue A function for largely internal use, but basically in order to use a DBValue, it needs to have its Adapter setup, this is because some values have Adapter specific issues. The implementing adapter may need to provide some information, or logging etc
func (*MysqlValue) AsDateTime ¶
func (v *MysqlValue) AsDateTime() (*DateTime, error)
AsDateTime Tries to convert the string to a DateTime, parsing may fail.
func (*MysqlValue) AsFloat32 ¶
func (v *MysqlValue) AsFloat32() (float32, error)
AsFloat32 Tries to convert the internal string to a float32
func (*MysqlValue) AsFloat64 ¶
func (v *MysqlValue) AsFloat64() (float64, error)
AsFloat64 Tries to convert the internal string to a float64
func (*MysqlValue) AsInt ¶
func (v *MysqlValue) AsInt() (int, error)
AsInt Attempts to convert the internal string to an Int
func (*MysqlValue) AsInt32 ¶
func (v *MysqlValue) AsInt32() (int32, error)
AsInt32 Tries to convert the internal string to an int32
func (*MysqlValue) AsInt64 ¶
func (v *MysqlValue) AsInt64() (int64, error)
AsInt64 Tries to convert the internal string to an int64 (i.e. BIGINT)
func (*MysqlValue) AsString ¶
func (v *MysqlValue) AsString() (string, error)
AsString Simply returns the internal string representation.
func (*MysqlValue) SetInternalValue ¶
func (v *MysqlValue) SetInternalValue(key, value string)
SetInternalValue Sets the internal value of the DBValue to the string provided. key isn't really used, but it may be.
type Option ¶
type Option struct { OptionId int64 OptionName string OptionValue string Autoload string // Dirty markers for smart updates IsOptionIdDirty bool IsOptionNameDirty bool IsOptionValueDirty bool IsAutoloadDirty bool // contains filtered or unexported fields }
Option is a Object Relational Mapping to the database table that represents it. In this case it is options. The table name will be Sprintf'd to include the prefix you define in your YAML configuration for the Adapter.
func NewOption ¶
NewOption binds an Adapter to a new instance of Option and sets up the _table and primary keys
func (*Option) Create ¶
Create inserts the model. Calling Save will call this function automatically for new models
func (*Option) Find ¶
Find searchs against the database table field option_id and will return bool,error This method is a programatically generated finder for Option
Note that Find returns a bool of true|false if found or not, not err, in the case of found == true, the instance data will be filled out!
A call to find ALWAYS overwrites the model you call Find on i.e. receiver is a pointer!
```go
m := NewOption(a) found,err := m.Find(23) .. handle err if found == false { // handle found } ... do what you want with m here
```
func (*Option) FindByAutoload ¶
FindByAutoload searchs against the database table field autoload and will return []*Option,error This method is a programatically generated finder for Option
```go
m := NewOption(a) results,err := m.FindByAutoload(...) // handle err for i,r := results { // now r is an instance of Option }
```
func (*Option) FindByOptionName ¶
FindByOptionName searchs against the database table field option_name and will return []*Option,error This method is a programatically generated finder for Option
```go
m := NewOption(a) results,err := m.FindByOptionName(...) // handle err for i,r := results { // now r is an instance of Option }
```
func (*Option) FindByOptionValue ¶
FindByOptionValue searchs against the database table field option_value and will return []*Option,error This method is a programatically generated finder for Option
```go
m := NewOption(a) results,err := m.FindByOptionValue(...) // handle err for i,r := results { // now r is an instance of Option }
```
func (*Option) FromDBValueMap ¶
FromDBValueMap Converts a DBValueMap returned from Adapter.Query to a Option
func (*Option) FromOption ¶
FromOption A kind of Clone function for Option
func (*Option) GetAutoload ¶
GetAutoload returns the value of Option.Autoload
func (*Option) GetOptionId ¶
GetOptionId returns the value of Option.OptionId
func (*Option) GetOptionName ¶
GetOptionName returns the value of Option.OptionName
func (*Option) GetOptionValue ¶
GetOptionValue returns the value of Option.OptionValue
func (*Option) GetPrimaryKeyName ¶
GetPrimaryKeyName returns the DB field name
func (*Option) GetPrimaryKeyValue ¶
GetPrimaryKeyValue returns the value, usually int64 of the PrimaryKey
func (*Option) SetAutoload ¶
SetAutoload sets and marks as dirty the value of Option.Autoload
func (*Option) SetOptionId ¶
SetOptionId sets and marks as dirty the value of Option.OptionId
func (*Option) SetOptionName ¶
SetOptionName sets and marks as dirty the value of Option.OptionName
func (*Option) SetOptionValue ¶
SetOptionValue sets and marks as dirty the value of Option.OptionValue
func (*Option) Update ¶
Update is a dynamic updater, it considers whether or not a field is 'dirty' and needs to be updated. Will only work if you use the Getters and Setters
func (*Option) UpdateAutoload ¶
UpdateAutoload an immediate DB Query to update a single column, in this case autoload
func (*Option) UpdateOptionName ¶
UpdateOptionName an immediate DB Query to update a single column, in this case option_name
func (*Option) UpdateOptionValue ¶
UpdateOptionValue an immediate DB Query to update a single column, in this case option_value
type Post ¶
type Post struct { ID int64 PostAuthor int64 PostDate *DateTime PostDateGmt *DateTime PostContent string PostTitle string PostExcerpt string PostStatus string CommentStatus string PingStatus string PostPassword string PostName string ToPing string Pinged string PostModified *DateTime PostModifiedGmt *DateTime PostContentFiltered string PostParent int64 Guid string MenuOrder int PostType string PostMimeType string CommentCount int64 // Dirty markers for smart updates IsIDDirty bool IsPostAuthorDirty bool IsPostDateDirty bool IsPostDateGmtDirty bool IsPostContentDirty bool IsPostTitleDirty bool IsPostExcerptDirty bool IsPostStatusDirty bool IsCommentStatusDirty bool IsPingStatusDirty bool IsPostPasswordDirty bool IsPostNameDirty bool IsToPingDirty bool IsPingedDirty bool IsPostModifiedDirty bool IsPostModifiedGmtDirty bool IsPostContentFilteredDirty bool IsPostParentDirty bool IsGuidDirty bool IsMenuOrderDirty bool IsPostTypeDirty bool IsPostMimeTypeDirty bool IsCommentCountDirty bool // contains filtered or unexported fields }
Post is a Object Relational Mapping to the database table that represents it. In this case it is posts. The table name will be Sprintf'd to include the prefix you define in your YAML configuration for the Adapter.
func NewPost ¶
NewPost binds an Adapter to a new instance of Post and sets up the _table and primary keys
func (*Post) Create ¶
Create inserts the model. Calling Save will call this function automatically for new models
func (*Post) Find ¶
Find searchs against the database table field ID and will return bool,error This method is a programatically generated finder for Post
Note that Find returns a bool of true|false if found or not, not err, in the case of found == true, the instance data will be filled out!
A call to find ALWAYS overwrites the model you call Find on i.e. receiver is a pointer!
```go
m := NewPost(a) found,err := m.Find(23) .. handle err if found == false { // handle found } ... do what you want with m here
```
func (*Post) FindByCommentCount ¶
FindByCommentCount searchs against the database table field comment_count and will return []*Post,error This method is a programatically generated finder for Post
```go
m := NewPost(a) results,err := m.FindByCommentCount(...) // handle err for i,r := results { // now r is an instance of Post }
```
func (*Post) FindByCommentStatus ¶
FindByCommentStatus searchs against the database table field comment_status and will return []*Post,error This method is a programatically generated finder for Post
```go
m := NewPost(a) results,err := m.FindByCommentStatus(...) // handle err for i,r := results { // now r is an instance of Post }
```
func (*Post) FindByGuid ¶
FindByGuid searchs against the database table field guid and will return []*Post,error This method is a programatically generated finder for Post
```go
m := NewPost(a) results,err := m.FindByGuid(...) // handle err for i,r := results { // now r is an instance of Post }
```
func (*Post) FindByMenuOrder ¶
FindByMenuOrder searchs against the database table field menu_order and will return []*Post,error This method is a programatically generated finder for Post
```go
m := NewPost(a) results,err := m.FindByMenuOrder(...) // handle err for i,r := results { // now r is an instance of Post }
```
func (*Post) FindByPingStatus ¶
FindByPingStatus searchs against the database table field ping_status and will return []*Post,error This method is a programatically generated finder for Post
```go
m := NewPost(a) results,err := m.FindByPingStatus(...) // handle err for i,r := results { // now r is an instance of Post }
```
func (*Post) FindByPinged ¶
FindByPinged searchs against the database table field pinged and will return []*Post,error This method is a programatically generated finder for Post
```go
m := NewPost(a) results,err := m.FindByPinged(...) // handle err for i,r := results { // now r is an instance of Post }
```
func (*Post) FindByPostAuthor ¶
FindByPostAuthor searchs against the database table field post_author and will return []*Post,error This method is a programatically generated finder for Post
```go
m := NewPost(a) results,err := m.FindByPostAuthor(...) // handle err for i,r := results { // now r is an instance of Post }
```
func (*Post) FindByPostContent ¶
FindByPostContent searchs against the database table field post_content and will return []*Post,error This method is a programatically generated finder for Post
```go
m := NewPost(a) results,err := m.FindByPostContent(...) // handle err for i,r := results { // now r is an instance of Post }
```
func (*Post) FindByPostContentFiltered ¶
FindByPostContentFiltered searchs against the database table field post_content_filtered and will return []*Post,error This method is a programatically generated finder for Post
```go
m := NewPost(a) results,err := m.FindByPostContentFiltered(...) // handle err for i,r := results { // now r is an instance of Post }
```
func (*Post) FindByPostDate ¶
FindByPostDate searchs against the database table field post_date and will return []*Post,error This method is a programatically generated finder for Post
```go
m := NewPost(a) results,err := m.FindByPostDate(...) // handle err for i,r := results { // now r is an instance of Post }
```
func (*Post) FindByPostDateGmt ¶
FindByPostDateGmt searchs against the database table field post_date_gmt and will return []*Post,error This method is a programatically generated finder for Post
```go
m := NewPost(a) results,err := m.FindByPostDateGmt(...) // handle err for i,r := results { // now r is an instance of Post }
```
func (*Post) FindByPostExcerpt ¶
FindByPostExcerpt searchs against the database table field post_excerpt and will return []*Post,error This method is a programatically generated finder for Post
```go
m := NewPost(a) results,err := m.FindByPostExcerpt(...) // handle err for i,r := results { // now r is an instance of Post }
```
func (*Post) FindByPostMetaKeyValue ¶
func (*Post) FindByPostMimeType ¶
FindByPostMimeType searchs against the database table field post_mime_type and will return []*Post,error This method is a programatically generated finder for Post
```go
m := NewPost(a) results,err := m.FindByPostMimeType(...) // handle err for i,r := results { // now r is an instance of Post }
```
func (*Post) FindByPostModified ¶
FindByPostModified searchs against the database table field post_modified and will return []*Post,error This method is a programatically generated finder for Post
```go
m := NewPost(a) results,err := m.FindByPostModified(...) // handle err for i,r := results { // now r is an instance of Post }
```
func (*Post) FindByPostModifiedGmt ¶
FindByPostModifiedGmt searchs against the database table field post_modified_gmt and will return []*Post,error This method is a programatically generated finder for Post
```go
m := NewPost(a) results,err := m.FindByPostModifiedGmt(...) // handle err for i,r := results { // now r is an instance of Post }
```
func (*Post) FindByPostName ¶
FindByPostName searchs against the database table field post_name and will return []*Post,error This method is a programatically generated finder for Post
```go
m := NewPost(a) results,err := m.FindByPostName(...) // handle err for i,r := results { // now r is an instance of Post }
```
func (*Post) FindByPostParent ¶
FindByPostParent searchs against the database table field post_parent and will return []*Post,error This method is a programatically generated finder for Post
```go
m := NewPost(a) results,err := m.FindByPostParent(...) // handle err for i,r := results { // now r is an instance of Post }
```
func (*Post) FindByPostPassword ¶
FindByPostPassword searchs against the database table field post_password and will return []*Post,error This method is a programatically generated finder for Post
```go
m := NewPost(a) results,err := m.FindByPostPassword(...) // handle err for i,r := results { // now r is an instance of Post }
```
func (*Post) FindByPostStatus ¶
FindByPostStatus searchs against the database table field post_status and will return []*Post,error This method is a programatically generated finder for Post
```go
m := NewPost(a) results,err := m.FindByPostStatus(...) // handle err for i,r := results { // now r is an instance of Post }
```
func (*Post) FindByPostTitle ¶
FindByPostTitle searchs against the database table field post_title and will return []*Post,error This method is a programatically generated finder for Post
```go
m := NewPost(a) results,err := m.FindByPostTitle(...) // handle err for i,r := results { // now r is an instance of Post }
```
func (*Post) FindByPostType ¶
FindByPostType searchs against the database table field post_type and will return []*Post,error This method is a programatically generated finder for Post
```go
m := NewPost(a) results,err := m.FindByPostType(...) // handle err for i,r := results { // now r is an instance of Post }
```
func (*Post) FindByToPing ¶
FindByToPing searchs against the database table field to_ping and will return []*Post,error This method is a programatically generated finder for Post
```go
m := NewPost(a) results,err := m.FindByToPing(...) // handle err for i,r := results { // now r is an instance of Post }
```
func (*Post) FromDBValueMap ¶
FromDBValueMap Converts a DBValueMap returned from Adapter.Query to a Post
func (*Post) GetCommentCount ¶
GetCommentCount returns the value of Post.CommentCount
func (*Post) GetCommentStatus ¶
GetCommentStatus returns the value of Post.CommentStatus
func (*Post) GetMenuOrder ¶
GetMenuOrder returns the value of Post.MenuOrder
func (*Post) GetPingStatus ¶
GetPingStatus returns the value of Post.PingStatus
func (*Post) GetPostAuthor ¶
GetPostAuthor returns the value of Post.PostAuthor
func (*Post) GetPostContent ¶
GetPostContent returns the value of Post.PostContent
func (*Post) GetPostContentFiltered ¶
GetPostContentFiltered returns the value of Post.PostContentFiltered
func (*Post) GetPostDate ¶
GetPostDate returns the value of Post.PostDate
func (*Post) GetPostDateGmt ¶
GetPostDateGmt returns the value of Post.PostDateGmt
func (*Post) GetPostExcerpt ¶
GetPostExcerpt returns the value of Post.PostExcerpt
func (*Post) GetPostMimeType ¶
GetPostMimeType returns the value of Post.PostMimeType
func (*Post) GetPostModified ¶
GetPostModified returns the value of Post.PostModified
func (*Post) GetPostModifiedGmt ¶
GetPostModifiedGmt returns the value of Post.PostModifiedGmt
func (*Post) GetPostName ¶
GetPostName returns the value of Post.PostName
func (*Post) GetPostParent ¶
GetPostParent returns the value of Post.PostParent
func (*Post) GetPostPassword ¶
GetPostPassword returns the value of Post.PostPassword
func (*Post) GetPostStatus ¶
GetPostStatus returns the value of Post.PostStatus
func (*Post) GetPostTitle ¶
GetPostTitle returns the value of Post.PostTitle
func (*Post) GetPostType ¶
GetPostType returns the value of Post.PostType
func (*Post) GetPrimaryKeyName ¶
GetPrimaryKeyName returns the DB field name
func (*Post) GetPrimaryKeyValue ¶
GetPrimaryKeyValue returns the value, usually int64 of the PrimaryKey
func (*Post) SetCommentCount ¶
SetCommentCount sets and marks as dirty the value of Post.CommentCount
func (*Post) SetCommentStatus ¶
SetCommentStatus sets and marks as dirty the value of Post.CommentStatus
func (*Post) SetMenuOrder ¶
SetMenuOrder sets and marks as dirty the value of Post.MenuOrder
func (*Post) SetPingStatus ¶
SetPingStatus sets and marks as dirty the value of Post.PingStatus
func (*Post) SetPostAuthor ¶
SetPostAuthor sets and marks as dirty the value of Post.PostAuthor
func (*Post) SetPostContent ¶
SetPostContent sets and marks as dirty the value of Post.PostContent
func (*Post) SetPostContentFiltered ¶
SetPostContentFiltered sets and marks as dirty the value of Post.PostContentFiltered
func (*Post) SetPostDate ¶
SetPostDate sets and marks as dirty the value of Post.PostDate
func (*Post) SetPostDateGmt ¶
SetPostDateGmt sets and marks as dirty the value of Post.PostDateGmt
func (*Post) SetPostExcerpt ¶
SetPostExcerpt sets and marks as dirty the value of Post.PostExcerpt
func (*Post) SetPostMimeType ¶
SetPostMimeType sets and marks as dirty the value of Post.PostMimeType
func (*Post) SetPostModified ¶
SetPostModified sets and marks as dirty the value of Post.PostModified
func (*Post) SetPostModifiedGmt ¶
SetPostModifiedGmt sets and marks as dirty the value of Post.PostModifiedGmt
func (*Post) SetPostName ¶
SetPostName sets and marks as dirty the value of Post.PostName
func (*Post) SetPostParent ¶
SetPostParent sets and marks as dirty the value of Post.PostParent
func (*Post) SetPostPassword ¶
SetPostPassword sets and marks as dirty the value of Post.PostPassword
func (*Post) SetPostStatus ¶
SetPostStatus sets and marks as dirty the value of Post.PostStatus
func (*Post) SetPostTitle ¶
SetPostTitle sets and marks as dirty the value of Post.PostTitle
func (*Post) SetPostType ¶
SetPostType sets and marks as dirty the value of Post.PostType
func (*Post) Update ¶
Update is a dynamic updater, it considers whether or not a field is 'dirty' and needs to be updated. Will only work if you use the Getters and Setters
func (*Post) UpdateCommentCount ¶
UpdateCommentCount an immediate DB Query to update a single column, in this case comment_count
func (*Post) UpdateCommentStatus ¶
UpdateCommentStatus an immediate DB Query to update a single column, in this case comment_status
func (*Post) UpdateGuid ¶
UpdateGuid an immediate DB Query to update a single column, in this case guid
func (*Post) UpdateMenuOrder ¶
UpdateMenuOrder an immediate DB Query to update a single column, in this case menu_order
func (*Post) UpdatePingStatus ¶
UpdatePingStatus an immediate DB Query to update a single column, in this case ping_status
func (*Post) UpdatePinged ¶
UpdatePinged an immediate DB Query to update a single column, in this case pinged
func (*Post) UpdatePostAuthor ¶
UpdatePostAuthor an immediate DB Query to update a single column, in this case post_author
func (*Post) UpdatePostContent ¶
UpdatePostContent an immediate DB Query to update a single column, in this case post_content
func (*Post) UpdatePostContentFiltered ¶
UpdatePostContentFiltered an immediate DB Query to update a single column, in this case post_content_filtered
func (*Post) UpdatePostDate ¶
UpdatePostDate an immediate DB Query to update a single column, in this case post_date
func (*Post) UpdatePostDateGmt ¶
UpdatePostDateGmt an immediate DB Query to update a single column, in this case post_date_gmt
func (*Post) UpdatePostExcerpt ¶
UpdatePostExcerpt an immediate DB Query to update a single column, in this case post_excerpt
func (*Post) UpdatePostMimeType ¶
UpdatePostMimeType an immediate DB Query to update a single column, in this case post_mime_type
func (*Post) UpdatePostModified ¶
UpdatePostModified an immediate DB Query to update a single column, in this case post_modified
func (*Post) UpdatePostModifiedGmt ¶
UpdatePostModifiedGmt an immediate DB Query to update a single column, in this case post_modified_gmt
func (*Post) UpdatePostName ¶
UpdatePostName an immediate DB Query to update a single column, in this case post_name
func (*Post) UpdatePostParent ¶
UpdatePostParent an immediate DB Query to update a single column, in this case post_parent
func (*Post) UpdatePostPassword ¶
UpdatePostPassword an immediate DB Query to update a single column, in this case post_password
func (*Post) UpdatePostStatus ¶
UpdatePostStatus an immediate DB Query to update a single column, in this case post_status
func (*Post) UpdatePostTitle ¶
UpdatePostTitle an immediate DB Query to update a single column, in this case post_title
func (*Post) UpdatePostType ¶
UpdatePostType an immediate DB Query to update a single column, in this case post_type
func (*Post) UpdateToPing ¶
UpdateToPing an immediate DB Query to update a single column, in this case to_ping
type PostMeta ¶
type PostMeta struct { MetaId int64 PostId int64 MetaKey string MetaValue string // Dirty markers for smart updates IsMetaIdDirty bool IsPostIdDirty bool IsMetaKeyDirty bool IsMetaValueDirty bool // contains filtered or unexported fields }
PostMeta is a Object Relational Mapping to the database table that represents it. In this case it is postmeta. The table name will be Sprintf'd to include the prefix you define in your YAML configuration for the Adapter.
func NewPostMeta ¶
NewPostMeta binds an Adapter to a new instance of PostMeta and sets up the _table and primary keys
func (*PostMeta) Create ¶
Create inserts the model. Calling Save will call this function automatically for new models
func (*PostMeta) Find ¶
Find searchs against the database table field meta_id and will return bool,error This method is a programatically generated finder for PostMeta
Note that Find returns a bool of true|false if found or not, not err, in the case of found == true, the instance data will be filled out!
A call to find ALWAYS overwrites the model you call Find on i.e. receiver is a pointer!
```go
m := NewPostMeta(a) found,err := m.Find(23) .. handle err if found == false { // handle found } ... do what you want with m here
```
func (*PostMeta) FindByKeyValue ¶
func (*PostMeta) FindByKeyValueWithPostId ¶
func (*PostMeta) FindByMetaKey ¶
FindByMetaKey searchs against the database table field meta_key and will return []*PostMeta,error This method is a programatically generated finder for PostMeta
```go
m := NewPostMeta(a) results,err := m.FindByMetaKey(...) // handle err for i,r := results { // now r is an instance of PostMeta }
```
func (*PostMeta) FindByMetaValue ¶
FindByMetaValue searchs against the database table field meta_value and will return []*PostMeta,error This method is a programatically generated finder for PostMeta
```go
m := NewPostMeta(a) results,err := m.FindByMetaValue(...) // handle err for i,r := results { // now r is an instance of PostMeta }
```
func (*PostMeta) FindByPostId ¶
FindByPostId searchs against the database table field post_id and will return []*PostMeta,error This method is a programatically generated finder for PostMeta
```go
m := NewPostMeta(a) results,err := m.FindByPostId(...) // handle err for i,r := results { // now r is an instance of PostMeta }
```
func (*PostMeta) FromDBValueMap ¶
FromDBValueMap Converts a DBValueMap returned from Adapter.Query to a PostMeta
func (*PostMeta) FromPostMeta ¶
FromPostMeta A kind of Clone function for PostMeta
func (*PostMeta) GetMetaKey ¶
GetMetaKey returns the value of PostMeta.MetaKey
func (*PostMeta) GetMetaValue ¶
GetMetaValue returns the value of PostMeta.MetaValue
func (*PostMeta) GetPrimaryKeyName ¶
GetPrimaryKeyName returns the DB field name
func (*PostMeta) GetPrimaryKeyValue ¶
GetPrimaryKeyValue returns the value, usually int64 of the PrimaryKey
func (*PostMeta) SetMetaKey ¶
SetMetaKey sets and marks as dirty the value of PostMeta.MetaKey
func (*PostMeta) SetMetaValue ¶
SetMetaValue sets and marks as dirty the value of PostMeta.MetaValue
func (*PostMeta) Update ¶
Update is a dynamic updater, it considers whether or not a field is 'dirty' and needs to be updated. Will only work if you use the Getters and Setters
func (*PostMeta) UpdateMetaKey ¶
UpdateMetaKey an immediate DB Query to update a single column, in this case meta_key
func (*PostMeta) UpdateMetaValue ¶
UpdateMetaValue an immediate DB Query to update a single column, in this case meta_value
func (*PostMeta) UpdatePostId ¶
UpdatePostId an immediate DB Query to update a single column, in this case post_id
type SafeStringFilter ¶
SafeStringFilter is the function that escapes possible SQL Injection code.
type Term ¶
type Term struct { TermId int64 Name string Slug string TermGroup int64 // Dirty markers for smart updates IsTermIdDirty bool IsNameDirty bool IsSlugDirty bool IsTermGroupDirty bool // contains filtered or unexported fields }
Term is a Object Relational Mapping to the database table that represents it. In this case it is terms. The table name will be Sprintf'd to include the prefix you define in your YAML configuration for the Adapter.
func NewTerm ¶
NewTerm binds an Adapter to a new instance of Term and sets up the _table and primary keys
func (*Term) Create ¶
Create inserts the model. Calling Save will call this function automatically for new models
func (*Term) Find ¶
Find searchs against the database table field term_id and will return bool,error This method is a programatically generated finder for Term
Note that Find returns a bool of true|false if found or not, not err, in the case of found == true, the instance data will be filled out!
A call to find ALWAYS overwrites the model you call Find on i.e. receiver is a pointer!
```go
m := NewTerm(a) found,err := m.Find(23) .. handle err if found == false { // handle found } ... do what you want with m here
```
func (*Term) FindByName ¶
FindByName searchs against the database table field name and will return []*Term,error This method is a programatically generated finder for Term
```go
m := NewTerm(a) results,err := m.FindByName(...) // handle err for i,r := results { // now r is an instance of Term }
```
func (*Term) FindBySlug ¶
FindBySlug searchs against the database table field slug and will return []*Term,error This method is a programatically generated finder for Term
```go
m := NewTerm(a) results,err := m.FindBySlug(...) // handle err for i,r := results { // now r is an instance of Term }
```
func (*Term) FindByTermGroup ¶
FindByTermGroup searchs against the database table field term_group and will return []*Term,error This method is a programatically generated finder for Term
```go
m := NewTerm(a) results,err := m.FindByTermGroup(...) // handle err for i,r := results { // now r is an instance of Term }
```
func (*Term) FromDBValueMap ¶
FromDBValueMap Converts a DBValueMap returned from Adapter.Query to a Term
func (*Term) GetPrimaryKeyName ¶
GetPrimaryKeyName returns the DB field name
func (*Term) GetPrimaryKeyValue ¶
GetPrimaryKeyValue returns the value, usually int64 of the PrimaryKey
func (*Term) GetTermGroup ¶
GetTermGroup returns the value of Term.TermGroup
func (*Term) SetTermGroup ¶
SetTermGroup sets and marks as dirty the value of Term.TermGroup
func (*Term) Update ¶
Update is a dynamic updater, it considers whether or not a field is 'dirty' and needs to be updated. Will only work if you use the Getters and Setters
func (*Term) UpdateName ¶
UpdateName an immediate DB Query to update a single column, in this case name
func (*Term) UpdateSlug ¶
UpdateSlug an immediate DB Query to update a single column, in this case slug
func (*Term) UpdateTermGroup ¶
UpdateTermGroup an immediate DB Query to update a single column, in this case term_group
type TermRelationship ¶
type TermRelationship struct { ObjectId int64 TermTaxonomyId int64 TermOrder int // Dirty markers for smart updates IsObjectIdDirty bool IsTermTaxonomyIdDirty bool IsTermOrderDirty bool // contains filtered or unexported fields }
TermRelationship is a Object Relational Mapping to the database table that represents it. In this case it is term_relationships. The table name will be Sprintf'd to include the prefix you define in your YAML configuration for the Adapter.
func NewTermRelationship ¶
func NewTermRelationship(a Adapter) *TermRelationship
NewTermRelationship binds an Adapter to a new instance of TermRelationship and sets up the _table and primary keys
func (*TermRelationship) Create ¶
func (o *TermRelationship) Create() error
Create inserts the model. Calling Save will call this function automatically for new models
func (*TermRelationship) Destroy ¶
func (o *TermRelationship) Destroy() error
Destroy deletes the model
func (*TermRelationship) Find ¶
func (o *TermRelationship) Find(termId int64, objectId int64) (bool, error)
Find for the TermRelationship is a bit tricky, as it has no primary key as such, but a composite key.
func (*TermRelationship) FindByObjectId ¶
func (o *TermRelationship) FindByObjectId(_findByObjectId int64) ([]*TermRelationship, error)
FindByObjectId searchs against the database table field object_id and will return []*TermRelationship,error This method is a programatically generated finder for TermRelationship
```go
m := NewTermRelationship(a) results,err := m.FindByObjectId(...) // handle err for i,r := results { // now r is an instance of TermRelationship }
```
func (*TermRelationship) FindBySQL ¶
func (o *TermRelationship) FindBySQL(s string) ([]*TermRelationship, error)
FindBySQL allows you to search using a complete SQL string
func (*TermRelationship) FindByTermOrder ¶
func (o *TermRelationship) FindByTermOrder(_findByTermOrder int) ([]*TermRelationship, error)
FindByTermOrder searchs against the database table field term_order and will return []*TermRelationship,error This method is a programatically generated finder for TermRelationship
```go
m := NewTermRelationship(a) results,err := m.FindByTermOrder(...) // handle err for i,r := results { // now r is an instance of TermRelationship }
```
func (*TermRelationship) FromDBValueMap ¶
func (o *TermRelationship) FromDBValueMap(m map[string]DBValue) error
FromDBValueMap Converts a DBValueMap returned from Adapter.Query to a TermRelationship
func (*TermRelationship) FromTermRelationship ¶
func (o *TermRelationship) FromTermRelationship(m *TermRelationship)
FromTermRelationship A kind of Clone function for TermRelationship
func (*TermRelationship) GetObjectId ¶
func (o *TermRelationship) GetObjectId() int64
GetObjectId returns the value of TermRelationship.ObjectId
func (*TermRelationship) GetPrimaryKeyName ¶
func (o *TermRelationship) GetPrimaryKeyName() string
GetPrimaryKeyName returns the DB field name
func (*TermRelationship) GetPrimaryKeyValue ¶
func (o *TermRelationship) GetPrimaryKeyValue() int64
GetPrimaryKeyValue returns the value, usually int64 of the PrimaryKey
func (*TermRelationship) GetTermOrder ¶
func (o *TermRelationship) GetTermOrder() int
GetTermOrder returns the value of TermRelationship.TermOrder
func (*TermRelationship) GetTermTaxonomyId ¶
func (o *TermRelationship) GetTermTaxonomyId() int64
GetTermTaxonomyId returns the value of TermRelationship.TermTaxonomyId
func (*TermRelationship) Reload ¶
func (o *TermRelationship) Reload() error
Reload A function to forcibly reload TermRelationship
func (*TermRelationship) Save ¶
func (o *TermRelationship) Save() error
Save is a dynamic saver 'inherited' by all models
func (*TermRelationship) SetObjectId ¶
func (o *TermRelationship) SetObjectId(arg int64)
SetObjectId sets and marks as dirty the value of TermRelationship.ObjectId
func (*TermRelationship) SetTermOrder ¶
func (o *TermRelationship) SetTermOrder(arg int)
SetTermOrder sets and marks as dirty the value of TermRelationship.TermOrder
func (*TermRelationship) SetTermTaxonomyId ¶
func (o *TermRelationship) SetTermTaxonomyId(arg int64)
SetTermTaxonomyId sets and marks as dirty the value of TermRelationship.TermTaxonomyId
func (*TermRelationship) Update ¶
func (o *TermRelationship) Update() error
Update is a dynamic updater, it considers whether or not a field is 'dirty' and needs to be updated. Will only work if you use the Getters and Setters
func (*TermRelationship) UpdateObjectId ¶
func (o *TermRelationship) UpdateObjectId(_updObjectId int64) (int64, error)
UpdateObjectId an immediate DB Query to update a single column, in this case object_id
func (*TermRelationship) UpdateTermOrder ¶
func (o *TermRelationship) UpdateTermOrder(_updTermOrder int) (int64, error)
UpdateTermOrder an immediate DB Query to update a single column, in this case term_order
func (*TermRelationship) Where ¶
func (o *TermRelationship) Where(s string) ([]*TermRelationship, error)
Where is a shortcut to FindBySql, in this case you only specify the WHERE clause, such as m.Where(`ID IN (23,25)`)
type TermTaxonomy ¶
type TermTaxonomy struct { TermTaxonomyId int64 TermId int64 Taxonomy string Description string Parent int64 Count int64 // Dirty markers for smart updates IsTermTaxonomyIdDirty bool IsTermIdDirty bool IsTaxonomyDirty bool IsDescriptionDirty bool IsParentDirty bool IsCountDirty bool // contains filtered or unexported fields }
TermTaxonomy is a Object Relational Mapping to the database table that represents it. In this case it is term_taxonomy. The table name will be Sprintf'd to include the prefix you define in your YAML configuration for the Adapter.
func NewTermTaxonomy ¶
func NewTermTaxonomy(a Adapter) *TermTaxonomy
NewTermTaxonomy binds an Adapter to a new instance of TermTaxonomy and sets up the _table and primary keys
func (*TermTaxonomy) Create ¶
func (o *TermTaxonomy) Create() error
Create inserts the model. Calling Save will call this function automatically for new models
func (*TermTaxonomy) Find ¶
func (o *TermTaxonomy) Find(_findByTermTaxonomyId int64) (bool, error)
Find searchs against the database table field term_taxonomy_id and will return bool,error This method is a programatically generated finder for TermTaxonomy
Note that Find returns a bool of true|false if found or not, not err, in the case of found == true, the instance data will be filled out!
A call to find ALWAYS overwrites the model you call Find on i.e. receiver is a pointer!
```go
m := NewTermTaxonomy(a) found,err := m.Find(23) .. handle err if found == false { // handle found } ... do what you want with m here
```
func (*TermTaxonomy) FindByCount ¶
func (o *TermTaxonomy) FindByCount(_findByCount int64) ([]*TermTaxonomy, error)
FindByCount searchs against the database table field count and will return []*TermTaxonomy,error This method is a programatically generated finder for TermTaxonomy
```go
m := NewTermTaxonomy(a) results,err := m.FindByCount(...) // handle err for i,r := results { // now r is an instance of TermTaxonomy }
```
func (*TermTaxonomy) FindByDescription ¶
func (o *TermTaxonomy) FindByDescription(_findByDescription string) ([]*TermTaxonomy, error)
FindByDescription searchs against the database table field description and will return []*TermTaxonomy,error This method is a programatically generated finder for TermTaxonomy
```go
m := NewTermTaxonomy(a) results,err := m.FindByDescription(...) // handle err for i,r := results { // now r is an instance of TermTaxonomy }
```
func (*TermTaxonomy) FindByParent ¶
func (o *TermTaxonomy) FindByParent(_findByParent int64) ([]*TermTaxonomy, error)
FindByParent searchs against the database table field parent and will return []*TermTaxonomy,error This method is a programatically generated finder for TermTaxonomy
```go
m := NewTermTaxonomy(a) results,err := m.FindByParent(...) // handle err for i,r := results { // now r is an instance of TermTaxonomy }
```
func (*TermTaxonomy) FindBySQL ¶
func (o *TermTaxonomy) FindBySQL(s string) ([]*TermTaxonomy, error)
FindBySQL allows you to search using a complete SQL string
func (*TermTaxonomy) FindByTaxonomy ¶
func (o *TermTaxonomy) FindByTaxonomy(_findByTaxonomy string) ([]*TermTaxonomy, error)
FindByTaxonomy searchs against the database table field taxonomy and will return []*TermTaxonomy,error This method is a programatically generated finder for TermTaxonomy
```go
m := NewTermTaxonomy(a) results,err := m.FindByTaxonomy(...) // handle err for i,r := results { // now r is an instance of TermTaxonomy }
```
func (*TermTaxonomy) FindByTermId ¶
func (o *TermTaxonomy) FindByTermId(_findByTermId int64) ([]*TermTaxonomy, error)
FindByTermId searchs against the database table field term_id and will return []*TermTaxonomy,error This method is a programatically generated finder for TermTaxonomy
```go
m := NewTermTaxonomy(a) results,err := m.FindByTermId(...) // handle err for i,r := results { // now r is an instance of TermTaxonomy }
```
func (*TermTaxonomy) FromDBValueMap ¶
func (o *TermTaxonomy) FromDBValueMap(m map[string]DBValue) error
FromDBValueMap Converts a DBValueMap returned from Adapter.Query to a TermTaxonomy
func (*TermTaxonomy) FromTermTaxonomy ¶
func (o *TermTaxonomy) FromTermTaxonomy(m *TermTaxonomy)
FromTermTaxonomy A kind of Clone function for TermTaxonomy
func (*TermTaxonomy) GetCount ¶
func (o *TermTaxonomy) GetCount() int64
GetCount returns the value of TermTaxonomy.Count
func (*TermTaxonomy) GetDescription ¶
func (o *TermTaxonomy) GetDescription() string
GetDescription returns the value of TermTaxonomy.Description
func (*TermTaxonomy) GetParent ¶
func (o *TermTaxonomy) GetParent() int64
GetParent returns the value of TermTaxonomy.Parent
func (*TermTaxonomy) GetPrimaryKeyName ¶
func (o *TermTaxonomy) GetPrimaryKeyName() string
GetPrimaryKeyName returns the DB field name
func (*TermTaxonomy) GetPrimaryKeyValue ¶
func (o *TermTaxonomy) GetPrimaryKeyValue() int64
GetPrimaryKeyValue returns the value, usually int64 of the PrimaryKey
func (*TermTaxonomy) GetTaxonomy ¶
func (o *TermTaxonomy) GetTaxonomy() string
GetTaxonomy returns the value of TermTaxonomy.Taxonomy
func (*TermTaxonomy) GetTermId ¶
func (o *TermTaxonomy) GetTermId() int64
GetTermId returns the value of TermTaxonomy.TermId
func (*TermTaxonomy) GetTermTaxonomyId ¶
func (o *TermTaxonomy) GetTermTaxonomyId() int64
GetTermTaxonomyId returns the value of TermTaxonomy.TermTaxonomyId
func (*TermTaxonomy) Reload ¶
func (o *TermTaxonomy) Reload() error
Reload A function to forcibly reload TermTaxonomy
func (*TermTaxonomy) Save ¶
func (o *TermTaxonomy) Save() error
Save is a dynamic saver 'inherited' by all models
func (*TermTaxonomy) SetCount ¶
func (o *TermTaxonomy) SetCount(arg int64)
SetCount sets and marks as dirty the value of TermTaxonomy.Count
func (*TermTaxonomy) SetDescription ¶
func (o *TermTaxonomy) SetDescription(arg string)
SetDescription sets and marks as dirty the value of TermTaxonomy.Description
func (*TermTaxonomy) SetParent ¶
func (o *TermTaxonomy) SetParent(arg int64)
SetParent sets and marks as dirty the value of TermTaxonomy.Parent
func (*TermTaxonomy) SetTaxonomy ¶
func (o *TermTaxonomy) SetTaxonomy(arg string)
SetTaxonomy sets and marks as dirty the value of TermTaxonomy.Taxonomy
func (*TermTaxonomy) SetTermId ¶
func (o *TermTaxonomy) SetTermId(arg int64)
SetTermId sets and marks as dirty the value of TermTaxonomy.TermId
func (*TermTaxonomy) SetTermTaxonomyId ¶
func (o *TermTaxonomy) SetTermTaxonomyId(arg int64)
SetTermTaxonomyId sets and marks as dirty the value of TermTaxonomy.TermTaxonomyId
func (*TermTaxonomy) Update ¶
func (o *TermTaxonomy) Update() error
Update is a dynamic updater, it considers whether or not a field is 'dirty' and needs to be updated. Will only work if you use the Getters and Setters
func (*TermTaxonomy) UpdateCount ¶
func (o *TermTaxonomy) UpdateCount(_updCount int64) (int64, error)
UpdateCount an immediate DB Query to update a single column, in this case count
func (*TermTaxonomy) UpdateDescription ¶
func (o *TermTaxonomy) UpdateDescription(_updDescription string) (int64, error)
UpdateDescription an immediate DB Query to update a single column, in this case description
func (*TermTaxonomy) UpdateParent ¶
func (o *TermTaxonomy) UpdateParent(_updParent int64) (int64, error)
UpdateParent an immediate DB Query to update a single column, in this case parent
func (*TermTaxonomy) UpdateTaxonomy ¶
func (o *TermTaxonomy) UpdateTaxonomy(_updTaxonomy string) (int64, error)
UpdateTaxonomy an immediate DB Query to update a single column, in this case taxonomy
func (*TermTaxonomy) UpdateTermId ¶
func (o *TermTaxonomy) UpdateTermId(_updTermId int64) (int64, error)
UpdateTermId an immediate DB Query to update a single column, in this case term_id
func (*TermTaxonomy) Where ¶
func (o *TermTaxonomy) Where(s string) ([]*TermTaxonomy, error)
Where is a shortcut to FindBySql, in this case you only specify the WHERE clause, such as m.Where(`ID IN (23,25)`)
type UserMeta ¶
type UserMeta struct { UMetaId int64 UserId int64 MetaKey string MetaValue string // Dirty markers for smart updates IsUMetaIdDirty bool IsUserIdDirty bool IsMetaKeyDirty bool IsMetaValueDirty bool // contains filtered or unexported fields }
UserMeta is a Object Relational Mapping to the database table that represents it. In this case it is usermeta. The table name will be Sprintf'd to include the prefix you define in your YAML configuration for the Adapter.
func NewUserMeta ¶
NewUserMeta binds an Adapter to a new instance of UserMeta and sets up the _table and primary keys
func (*UserMeta) Create ¶
Create inserts the model. Calling Save will call this function automatically for new models
func (*UserMeta) Find ¶
Find searchs against the database table field umeta_id and will return bool,error This method is a programatically generated finder for UserMeta
Note that Find returns a bool of true|false if found or not, not err, in the case of found == true, the instance data will be filled out!
A call to find ALWAYS overwrites the model you call Find on i.e. receiver is a pointer!
```go
m := NewUserMeta(a) found,err := m.Find(23) .. handle err if found == false { // handle found } ... do what you want with m here
```
func (*UserMeta) FindByMetaKey ¶
FindByMetaKey searchs against the database table field meta_key and will return []*UserMeta,error This method is a programatically generated finder for UserMeta
```go
m := NewUserMeta(a) results,err := m.FindByMetaKey(...) // handle err for i,r := results { // now r is an instance of UserMeta }
```
func (*UserMeta) FindByMetaValue ¶
FindByMetaValue searchs against the database table field meta_value and will return []*UserMeta,error This method is a programatically generated finder for UserMeta
```go
m := NewUserMeta(a) results,err := m.FindByMetaValue(...) // handle err for i,r := results { // now r is an instance of UserMeta }
```
func (*UserMeta) FindByUserId ¶
FindByUserId searchs against the database table field user_id and will return []*UserMeta,error This method is a programatically generated finder for UserMeta
```go
m := NewUserMeta(a) results,err := m.FindByUserId(...) // handle err for i,r := results { // now r is an instance of UserMeta }
```
func (*UserMeta) FromDBValueMap ¶
FromDBValueMap Converts a DBValueMap returned from Adapter.Query to a UserMeta
func (*UserMeta) FromUserMeta ¶
FromUserMeta A kind of Clone function for UserMeta
func (*UserMeta) GetMetaKey ¶
GetMetaKey returns the value of UserMeta.MetaKey
func (*UserMeta) GetMetaValue ¶
GetMetaValue returns the value of UserMeta.MetaValue
func (*UserMeta) GetPrimaryKeyName ¶
GetPrimaryKeyName returns the DB field name
func (*UserMeta) GetPrimaryKeyValue ¶
GetPrimaryKeyValue returns the value, usually int64 of the PrimaryKey
func (*UserMeta) GetUMetaId ¶
GetUMetaId returns the value of UserMeta.UMetaId
func (*UserMeta) SetMetaKey ¶
SetMetaKey sets and marks as dirty the value of UserMeta.MetaKey
func (*UserMeta) SetMetaValue ¶
SetMetaValue sets and marks as dirty the value of UserMeta.MetaValue
func (*UserMeta) SetUMetaId ¶
SetUMetaId sets and marks as dirty the value of UserMeta.UMetaId
func (*UserMeta) Update ¶
Update is a dynamic updater, it considers whether or not a field is 'dirty' and needs to be updated. Will only work if you use the Getters and Setters
func (*UserMeta) UpdateMetaKey ¶
UpdateMetaKey an immediate DB Query to update a single column, in this case meta_key
func (*UserMeta) UpdateMetaValue ¶
UpdateMetaValue an immediate DB Query to update a single column, in this case meta_value
func (*UserMeta) UpdateUserId ¶
UpdateUserId an immediate DB Query to update a single column, in this case user_id