pushdb

package
v1.4.21 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 10, 2026 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Code generated by godddx, DO AVOID EDIT.

Code generated by godddx, DO AVOID EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB struct {
	// contains filtered or unexported fields
}

DB Related business namespaces

func NewDB

func NewDB(db *gorm.DB) DB

NewDB instance object

func (DB) AutoMigrate

func (d DB) AutoMigrate(ok bool) DB

AutoMigrate sync database

func (DB) StreamPush

func (d DB) StreamPush() push.StreamPushStorer

StreamPush Get business instance

type StreamPush

type StreamPush DB

StreamPush Related business namespaces

func NewStreamPush

func NewStreamPush(db *gorm.DB) StreamPush

NewStreamPush instance object

func (StreamPush) Create added in v1.4.21

func (d StreamPush) Create(ctx context.Context, model *push.StreamPush) error

Create implements push.StreamPushStorer.

func (StreamPush) Delete added in v1.4.21

func (d StreamPush) Delete(ctx context.Context, model *push.StreamPush, opts ...orm.QueryOption) error

Delete implements push.StreamPushStorer.

func (StreamPush) Get

func (d StreamPush) Get(ctx context.Context, model *push.StreamPush, opts ...orm.QueryOption) error

Get implements push.StreamPushStorer.

func (StreamPush) List added in v1.4.21

func (d StreamPush) List(ctx context.Context, bs *[]*push.StreamPush, page orm.Pager, opts ...orm.QueryOption) (int64, error)

List implements push.StreamPushStorer.

func (StreamPush) Session

func (d StreamPush) Session(ctx context.Context, changeFns ...func(*gorm.DB) error) error

func (StreamPush) Update added in v1.4.21

func (d StreamPush) Update(ctx context.Context, model *push.StreamPush, changeFn func(*push.StreamPush), opts ...orm.QueryOption) error

Update implements push.StreamPushStorer.

func (StreamPush) UpdateWithSession added in v1.4.21

func (d StreamPush) UpdateWithSession(tx *gorm.DB, model *push.StreamPush, changeFn func(b *push.StreamPush) error, opts ...orm.QueryOption) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL