sqlopt

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SQLOptions

func SQLOptions(opts ...SQLOption) sqlOptions

Types

type SQLOption

type SQLOption interface {
	Apply(db *gorm.DB) *gorm.DB
}

func EndCreatedAt

func EndCreatedAt(endCreatedAt int64) SQLOption

func EndUpdatedAt

func EndUpdatedAt(endUpdatedAt int64) SQLOption

func InAppIds

func InAppIds(appIds []string) SQLOption

func LikeName

func LikeName(name string) SQLOption

func Private

func Private() SQLOption

func StartCreatedAt

func StartCreatedAt(startCreatedAt int64) SQLOption

func StartUpdatedAt

func StartUpdatedAt(startUpdatedAt int64) SQLOption

func WithApiKey

func WithApiKey(apiKey string) SQLOption

func WithAppID

func WithAppID(appID string) SQLOption

func WithAppIDs added in v0.2.1

func WithAppIDs(Ids []string) SQLOption

func WithAppType

func WithAppType(appType string) SQLOption

func WithContent added in v0.1.5

func WithContent(content string) SQLOption

func WithContents added in v0.1.5

func WithContents(contents []string) SQLOption

func WithConversationID added in v0.2.8

func WithConversationID(id string) SQLOption

func WithExcludeUserID

func WithExcludeUserID(userID string) SQLOption

func WithID

func WithID(id uint32) SQLOption

func WithIDs added in v0.1.5

func WithIDs(Ids []string) SQLOption

func WithName added in v0.1.5

func WithName(name string) SQLOption

func WithOrgID

func WithOrgID(orgID string) SQLOption

func WithSearchType

func WithSearchType(userID, orgID, searchType string) SQLOption

func WithSuffix added in v0.1.7

func WithSuffix(suffix string) SQLOption

func WithTableID added in v0.1.5

func WithTableID(tableID uint32) SQLOption

func WithTableIDs added in v0.1.5

func WithTableIDs(tableIDs []string) SQLOption

func WithUserID

func WithUserID(userID string) SQLOption

Jump to

Keyboard shortcuts

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