flightORM

package module
v0.0.0-...-aef6bed Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

README

flightORM

flightORM

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Copy

func Copy(dest, src interface{}) error

Types

type Codec

type Codec interface {
	Encode(interface{}) ([]byte, error)
	Decode([]byte, interface{}) error
}

type Config

type Config struct {
	Addr     string
	User     string
	PassWord string
	// contains filtered or unexported fields
}

func (*Config) Apply

func (c *Config) Apply(config *Config) error

type DB

type DB struct {
	*Config

	Error error
	sqlparser.SQLNode
	// contains filtered or unexported fields
}

func Open

func Open(cfg *Config, opts ...Option) (*DB, error)

func (*DB) Session

func (db *DB) Session()

func (*DB) Where

func (db *DB) Where() (tx *DB)

type MsgPack

type MsgPack struct{}

func (*MsgPack) Decode

func (m *MsgPack) Decode(bytes []byte, i interface{}) error

func (*MsgPack) Encode

func (m *MsgPack) Encode(i interface{}) ([]byte, error)

type Option

type Option interface {
	Apply(*Config) error
}

type Scope

type Scope struct {
}

type Session

type Session struct {
	DryRun                   bool
	PrepareStmt              bool
	NewDB                    bool
	SkipHooks                bool
	SkipDefaultTransaction   bool
	DisableNestedTransaction bool
	AllowGlobalUpdate        bool
	FullSaveAssociations     bool
	QueryFields              bool
	Context                  context.Context
	//Logger                   logger.Interface
	NowFunc         func() time.Time
	CreateBatchSize int
}

Session config when create session with Session() method

Directories

Path Synopsis
ast

Jump to

Keyboard shortcuts

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