pushdb

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 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) Add

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

Add implements push.StreamPushStorer.

func (StreamPush) Del

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

Del implements push.StreamPushStorer.

func (StreamPush) Edit

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

Edit implements push.StreamPushStorer.

func (StreamPush) EditWithSession

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

func (StreamPush) Find

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

Find 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) Session

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

Jump to

Keyboard shortcuts

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