sqlserver

package
v1.0.1001 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2023 License: MIT Imports: 21 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

Types

type ModelEnc

type ModelEnc struct {
	Encrypted bool
	Hash      bool
}

type SQL

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

func (*SQL) AutoMigrate

func (c *SQL) AutoMigrate(dst ...interface{}) (err error)

func (*SQL) Close

func (c *SQL) Close() error

func (*SQL) Config

func (c *SQL) Config() databaseInterfaces.SQLConfig

func (*SQL) GetEncryption

func (c *SQL) GetEncryption() (encLib encryptionInterfaces.Encryption)

func (*SQL) Gorm

func (c *SQL) Gorm() *gorm.DB

func (*SQL) Id

func (c *SQL) Id() string

func (*SQL) Model

func (c *SQL) Model(dst interface{}) databaseInterfaces.OrmModel

func (*SQL) MySQL

func (c *SQL) MySQL() (err error)

func (*SQL) ORM

func (c *SQL) ORM() databaseInterfaces.ORM

func (*SQL) OnError

func (c *SQL) OnError(e error) (err error)

func (*SQL) PostgresSQL

func (c *SQL) PostgresSQL() (err error)

func (*SQL) SQLite

func (c *SQL) SQLite() (err error)

func (*SQL) Start

func (c *SQL) Start() error

func (*SQL) UseEncryption

func (c *SQL) UseEncryption(encLib encryptionInterfaces.Encryption) databaseInterfaces.SQL

type SqlModel

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

func (*SqlModel) Create

func (c *SqlModel) Create(data interface{}) (err error)

func (*SqlModel) Debug

func (*SqlModel) Delete

func (c *SqlModel) Delete() (rowEffected int64, err error)

func (*SqlModel) Drop

func (c *SqlModel) Drop() error

func (*SqlModel) Equal

func (c *SqlModel) Equal(data ...interface{}) databaseInterfaces.OrmModel

func (*SqlModel) Find

func (c *SqlModel) Find(dst interface{}) error

func (*SqlModel) FindRaw

func (c *SqlModel) FindRaw() (res []interface{}, err error)

func (*SqlModel) First

func (c *SqlModel) First(dst interface{}) error

func (*SqlModel) Limit

func (c *SqlModel) Limit(data int) databaseInterfaces.OrmModel

func (*SqlModel) NotEqual

func (c *SqlModel) NotEqual(data ...interface{}) databaseInterfaces.OrmModel

func (*SqlModel) Offset

func (c *SqlModel) Offset(data int) databaseInterfaces.OrmModel

func (*SqlModel) Or

func (c *SqlModel) Or(data ...interface{}) databaseInterfaces.OrmModel

func (*SqlModel) Order

func (*SqlModel) Truncate

func (c *SqlModel) Truncate() error

func (*SqlModel) Update

func (c *SqlModel) Update(data map[string]interface{}) (err error)

func (*SqlModel) Upsert

func (c *SqlModel) Upsert(data interface{}) (err error)

func (*SqlModel) Where

func (c *SqlModel) Where(query interface{}, args ...interface{}) databaseInterfaces.OrmModel

func (*SqlModel) WithContext

func (c *SqlModel) WithContext(ctx context.Context) databaseInterfaces.OrmModel

type Stores

type Stores struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewStore

func NewStore() *Stores

func (*Stores) LoadClient

func (c *Stores) LoadClient(id string) (client *SQL, ok bool)

func (*Stores) LoadClientByTag

func (c *Stores) LoadClientByTag(ta string) (client *SQL, ok bool)

func (*Stores) StoreClient

func (c *Stores) StoreClient(client *SQL)

Jump to

Keyboard shortcuts

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