Documentation ¶
Index ¶
- func ManagerAll(manager ManagerI) []Model
- func ManagerFilter(manager ManagerI, include Params, _ ...Params) []Model
- type Collection
- func (collection Collection) Count() uint
- func (collection Collection) DB() DB
- func (collection *Collection) Delete(idI any) error
- func (collection *Collection) DeleteAll() error
- func (collection *Collection) Get(idI any) (Model, error)
- func (collection Collection) Manager() ManagerI
- func (collection Collection) Model() Model
- func (collection Collection) Name() string
- func (collection *Collection) Save(model Model) error
- func (collection *Collection) SetManager(newManager ManagerI)
- type DataBase
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ManagerAll ¶
func ManagerAll(manager ManagerI) []Model
func ManagerFilter ¶
func ManagerFilter(manager ManagerI, include Params, _ ...Params) []Model
Types ¶
type Collection ¶
type Collection struct { Objects ManagerI // contains filtered or unexported fields }
func (Collection) Count ¶
func (collection Collection) Count() uint
func (Collection) DB ¶
func (collection Collection) DB() DB
func (*Collection) Delete ¶
func (collection *Collection) Delete(idI any) error
func (*Collection) DeleteAll ¶
func (collection *Collection) DeleteAll() error
Pocketbase does not support DeleteAll All models will be deletting of one
func (*Collection) Get ¶
func (collection *Collection) Get(idI any) (Model, error)
func (Collection) Manager ¶
func (collection Collection) Manager() ManagerI
func (Collection) Model ¶
func (collection Collection) Model() Model
func (Collection) Name ¶
func (collection Collection) Name() string
func (*Collection) Save ¶
func (collection *Collection) Save(model Model) error
func (*Collection) SetManager ¶
func (collection *Collection) SetManager(newManager ManagerI)
type DataBase ¶
type DataBase struct {
// contains filtered or unexported fields
}
func New ¶
func New(appp ...*pocketbase.PocketBase) *DataBase
func (*DataBase) ExistsTable ¶
func (*DataBase) TableFromCache ¶
func (*DataBase) UpdateCollection ¶
Click to show internal directories.
Click to hide internal directories.