Documentation
¶
Index ¶
- type Deleter
- type Inserter
- type Orm
- func (m *Orm[T]) Create() (int64, error)
- func (m *Orm[T]) Delete() *Deleter
- func (m *Orm[T]) Load(data *T) *Orm[T]
- func (m *Orm[T]) Pk(value any) *Orm[T]
- func (m *Orm[T]) Save() (int64, error)
- func (m *Orm[T]) Select(cols ...string) *Selector[T]
- func (m *Orm[T]) Update() (int64, error)
- func (m *Orm[T]) Updates(cols map[string]any) (int64, error)
- func (m *Orm[T]) Where(where []sq.Sqlizer) *Orm[T]
- type Selector
- func (s *Selector[T]) Get() ([]T, error)
- func (s *Selector[T]) Join(join string) *Selector[T]
- func (s *Selector[T]) Limit(limit uint64) *Selector[T]
- func (s *Selector[T]) Offset(offset uint64) *Selector[T]
- func (s *Selector[T]) One() (*T, error)
- func (s *Selector[T]) OrderBy(clauses ...string) *Selector[T]
- func (s *Selector[T]) Page(page, size uint64) *Selector[T]
- func (s *Selector[T]) Where(cond squirrel.Sqlizer) *Selector[T]
- type Updater
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Orm ¶
Click to show internal directories.
Click to hide internal directories.