Documentation
¶
Overview ¶
generated by argen; DO NOT EDIT
generated by argen; DO NOT EDIT
generated by argen; DO NOT EDIT
generated by argen; DO NOT EDIT
Index ¶
- func LogMode(mode bool)
- func Use(DB *sql.DB)
- type Post
- func (m Post) All() *PostRelation
- func (m Post) Build(p PostParams) *Post
- func (m Post) Count(column ...string) int
- func (m Post) Create(p PostParams) (*Post, *ar.Errors)
- func (m *Post) Delete() (bool, *ar.Errors)
- func (m Post) DeleteAll() (bool, *ar.Errors)
- func (m *Post) Destroy() (bool, *ar.Errors)
- func (m Post) Exists() bool
- func (m Post) Find(id int) (*Post, error)
- func (m Post) FindBy(cond string, args ...interface{}) (*Post, error)
- func (m Post) First() (*Post, error)
- func (m Post) Group(group string, groups ...string) *PostRelation
- func (m *Post) IsNewRecord() bool
- func (m *Post) IsPersistent() bool
- func (m Post) IsValid() (bool, *ar.Errors)
- func (m Post) JoinsUser() *PostRelation
- func (m Post) Last() (*Post, error)
- func (m Post) Limit(limit int) *PostRelation
- func (m Post) Offset(offset int) *PostRelation
- func (m Post) Order(column, order string) *PostRelation
- func (m *Post) Save(validate ...bool) (bool, *ar.Errors)
- func (m Post) Select(columns ...string) *PostRelation
- func (m *Post) Update(p PostParams) (bool, *ar.Errors)
- func (m *Post) UpdateColumns(p PostParams) (bool, *ar.Errors)
- func (m *Post) User() (*User, error)
- func (m Post) Where(cond string, args ...interface{}) *PostRelation
- type PostParams
- type PostRelation
- func (r *PostRelation) All() *PostRelation
- func (r *PostRelation) And(cond string, args ...interface{}) *PostRelation
- func (r *PostRelation) Find(id int) (*Post, error)
- func (r *PostRelation) FindBy(cond string, args ...interface{}) (*Post, error)
- func (r *PostRelation) First() (*Post, error)
- func (r *PostRelation) Group(group string, groups ...string) *PostRelation
- func (r *PostRelation) Having(cond string, args ...interface{}) *PostRelation
- func (r *PostRelation) JoinsUser() *PostRelation
- func (r *PostRelation) Last() (*Post, error)
- func (r *PostRelation) Limit(limit int) *PostRelation
- func (r *PostRelation) Offset(offset int) *PostRelation
- func (r *PostRelation) Order(column, order string) *PostRelation
- func (r *PostRelation) Query() ([]*Post, error)
- func (r *PostRelation) QueryRow() (*Post, error)
- func (r *PostRelation) Select(columns ...string) *PostRelation
- func (r *PostRelation) Where(cond string, args ...interface{}) *PostRelation
- type User
- func (m User) All() *UserRelation
- func (m User) Build(p UserParams) *User
- func (m *User) BuildPost(p PostParams) *Post
- func (m User) Count(column ...string) int
- func (m User) Create(p UserParams) (*User, *ar.Errors)
- func (m *User) Delete() (bool, *ar.Errors)
- func (m User) DeleteAll() (bool, *ar.Errors)
- func (m *User) Destroy() (bool, *ar.Errors)
- func (m User) Exists() bool
- func (m User) Find(id int) (*User, error)
- func (m User) FindBy(cond string, args ...interface{}) (*User, error)
- func (m User) First() (*User, error)
- func (m User) Group(group string, groups ...string) *UserRelation
- func (m *User) IsNewRecord() bool
- func (m *User) IsPersistent() bool
- func (m User) IsValid() (bool, *ar.Errors)
- func (m User) JoinsPosts() *UserRelation
- func (m User) Last() (*User, error)
- func (m User) Limit(limit int) *UserRelation
- func (m User) Offset(offset int) *UserRelation
- func (m User) OlderThan(args ...interface{}) *UserRelation
- func (m User) Order(column, order string) *UserRelation
- func (m *User) Posts() ([]*Post, error)
- func (m *User) Save(validate ...bool) (bool, *ar.Errors)
- func (m User) Select(columns ...string) *UserRelation
- func (m *User) Update(p UserParams) (bool, *ar.Errors)
- func (m *User) UpdateColumns(p UserParams) (bool, *ar.Errors)
- func (m User) Where(cond string, args ...interface{}) *UserRelation
- type UserParams
- type UserRelation
- func (r *UserRelation) All() *UserRelation
- func (r *UserRelation) And(cond string, args ...interface{}) *UserRelation
- func (r *UserRelation) Find(id int) (*User, error)
- func (r *UserRelation) FindBy(cond string, args ...interface{}) (*User, error)
- func (r *UserRelation) First() (*User, error)
- func (r *UserRelation) Group(group string, groups ...string) *UserRelation
- func (r *UserRelation) Having(cond string, args ...interface{}) *UserRelation
- func (r *UserRelation) JoinsPosts() *UserRelation
- func (r *UserRelation) Last() (*User, error)
- func (r *UserRelation) Limit(limit int) *UserRelation
- func (r *UserRelation) Offset(offset int) *UserRelation
- func (r *UserRelation) OlderThan(args ...interface{}) *UserRelation
- func (r *UserRelation) Order(column, order string) *UserRelation
- func (r *UserRelation) Query() ([]*User, error)
- func (r *UserRelation) QueryRow() (*User, error)
- func (r *UserRelation) Select(columns ...string) *UserRelation
- func (r *UserRelation) Where(cond string, args ...interface{}) *UserRelation
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Post ¶
+AR
func (Post) All ¶
func (m Post) All() *PostRelation
func (Post) Build ¶
func (m Post) Build(p PostParams) *Post
func (Post) Create ¶
func (m Post) Create(p PostParams) (*Post, *ar.Errors)
func (*Post) IsNewRecord ¶
func (*Post) IsPersistent ¶
func (Post) JoinsUser ¶
func (m Post) JoinsUser() *PostRelation
func (Post) Limit ¶
func (m Post) Limit(limit int) *PostRelation
func (Post) Offset ¶
func (m Post) Offset(offset int) *PostRelation
func (Post) Order ¶
func (m Post) Order(column, order string) *PostRelation
func (Post) Select ¶
func (m Post) Select(columns ...string) *PostRelation
func (*Post) Update ¶
func (m *Post) Update(p PostParams) (bool, *ar.Errors)
func (*Post) UpdateColumns ¶
func (m *Post) UpdateColumns(p PostParams) (bool, *ar.Errors)
func (Post) Where ¶
func (m Post) Where(cond string, args ...interface{}) *PostRelation
type PostParams ¶
type PostParams Post
type PostRelation ¶
type PostRelation struct {
*ar.Relation
// contains filtered or unexported fields
}
func (*PostRelation) All ¶
func (r *PostRelation) All() *PostRelation
func (*PostRelation) And ¶
func (r *PostRelation) And(cond string, args ...interface{}) *PostRelation
func (*PostRelation) FindBy ¶
func (r *PostRelation) FindBy(cond string, args ...interface{}) (*Post, error)
func (*PostRelation) First ¶
func (r *PostRelation) First() (*Post, error)
func (*PostRelation) Group ¶
func (r *PostRelation) Group(group string, groups ...string) *PostRelation
func (*PostRelation) Having ¶
func (r *PostRelation) Having(cond string, args ...interface{}) *PostRelation
func (*PostRelation) JoinsUser ¶
func (r *PostRelation) JoinsUser() *PostRelation
func (*PostRelation) Last ¶
func (r *PostRelation) Last() (*Post, error)
func (*PostRelation) Limit ¶
func (r *PostRelation) Limit(limit int) *PostRelation
func (*PostRelation) Offset ¶
func (r *PostRelation) Offset(offset int) *PostRelation
func (*PostRelation) Order ¶
func (r *PostRelation) Order(column, order string) *PostRelation
func (*PostRelation) Query ¶
func (r *PostRelation) Query() ([]*Post, error)
func (*PostRelation) QueryRow ¶
func (r *PostRelation) QueryRow() (*Post, error)
func (*PostRelation) Select ¶
func (r *PostRelation) Select(columns ...string) *PostRelation
func (*PostRelation) Where ¶
func (r *PostRelation) Where(cond string, args ...interface{}) *PostRelation
type User ¶
+AR
func (User) All ¶
func (m User) All() *UserRelation
func (User) Build ¶
func (m User) Build(p UserParams) *User
func (*User) BuildPost ¶
func (m *User) BuildPost(p PostParams) *Post
func (User) Create ¶
func (m User) Create(p UserParams) (*User, *ar.Errors)
func (*User) IsNewRecord ¶
func (*User) IsPersistent ¶
func (User) JoinsPosts ¶
func (m User) JoinsPosts() *UserRelation
func (User) Limit ¶
func (m User) Limit(limit int) *UserRelation
func (User) Offset ¶
func (m User) Offset(offset int) *UserRelation
func (User) OlderThan ¶
func (m User) OlderThan(args ...interface{}) *UserRelation
func (User) Order ¶
func (m User) Order(column, order string) *UserRelation
func (User) Select ¶
func (m User) Select(columns ...string) *UserRelation
func (*User) Update ¶
func (m *User) Update(p UserParams) (bool, *ar.Errors)
func (*User) UpdateColumns ¶
func (m *User) UpdateColumns(p UserParams) (bool, *ar.Errors)
func (User) Where ¶
func (m User) Where(cond string, args ...interface{}) *UserRelation
type UserParams ¶
type UserParams User
type UserRelation ¶
type UserRelation struct {
*ar.Relation
// contains filtered or unexported fields
}
func (*UserRelation) All ¶
func (r *UserRelation) All() *UserRelation
func (*UserRelation) And ¶
func (r *UserRelation) And(cond string, args ...interface{}) *UserRelation
func (*UserRelation) FindBy ¶
func (r *UserRelation) FindBy(cond string, args ...interface{}) (*User, error)
func (*UserRelation) First ¶
func (r *UserRelation) First() (*User, error)
func (*UserRelation) Group ¶
func (r *UserRelation) Group(group string, groups ...string) *UserRelation
func (*UserRelation) Having ¶
func (r *UserRelation) Having(cond string, args ...interface{}) *UserRelation
func (*UserRelation) JoinsPosts ¶
func (r *UserRelation) JoinsPosts() *UserRelation
func (*UserRelation) Last ¶
func (r *UserRelation) Last() (*User, error)
func (*UserRelation) Limit ¶
func (r *UserRelation) Limit(limit int) *UserRelation
func (*UserRelation) Offset ¶
func (r *UserRelation) Offset(offset int) *UserRelation
func (*UserRelation) OlderThan ¶
func (r *UserRelation) OlderThan(args ...interface{}) *UserRelation
func (*UserRelation) Order ¶
func (r *UserRelation) Order(column, order string) *UserRelation
func (*UserRelation) Query ¶
func (r *UserRelation) Query() ([]*User, error)
func (*UserRelation) QueryRow ¶
func (r *UserRelation) QueryRow() (*User, error)
func (*UserRelation) Select ¶
func (r *UserRelation) Select(columns ...string) *UserRelation
func (*UserRelation) Where ¶
func (r *UserRelation) Where(cond string, args ...interface{}) *UserRelation
Click to show internal directories.
Click to hide internal directories.