sqlSession

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultSqlSession

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

func NewDefaultSqlSession

func NewDefaultSqlSession(config pojo.Configuration) *DefaultSqlSession

func (*DefaultSqlSession) Delete

func (dSqlSession *DefaultSqlSession) Delete(statement pojo.MappedStatement, params []reflect.Value) int

func (*DefaultSqlSession) GetMapper

func (dSqlSession *DefaultSqlSession) GetMapper(itf any) any

*

  • GetMapper

func (*DefaultSqlSession) Insert

func (dSqlSession *DefaultSqlSession) Insert(statement pojo.MappedStatement, params []reflect.Value) int

func (*DefaultSqlSession) SelectList

func (dSqlSession *DefaultSqlSession) SelectList(statement pojo.MappedStatement, params []reflect.Value, results reflect.Value)

func (*DefaultSqlSession) SelectOne

func (dSqlSession *DefaultSqlSession) SelectOne(statement pojo.MappedStatement, params []reflect.Value, result reflect.Value)

func (*DefaultSqlSession) Update

func (dSqlSession *DefaultSqlSession) Update(statement pojo.MappedStatement, params []reflect.Value) int

type DefaultSqlSessionFactory

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

func NewDefaultSqlSessionFactory

func NewDefaultSqlSessionFactory(config pojo.Configuration) *DefaultSqlSessionFactory

func (DefaultSqlSessionFactory) OpenSession

func (dsf DefaultSqlSessionFactory) OpenSession() SqlSession

type Executor

type Executor interface {
	// contains filtered or unexported methods
}

type Factory

type Factory interface {
	OpenSession() SqlSession
}

type SimpleExecutor

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

func NewSimpleExecutor

func NewSimpleExecutor(configuration Configuration) *SimpleExecutor

type SqlSession

type SqlSession interface {
	/*
	 .SelectList:查询数据库获取数据列表
	*/
	SelectList(statement pojo.MappedStatement, params []reflect.Value, results reflect.Value)

	/*
	 .SelectOne:查询数据库获取一条数据
	*/
	SelectOne(statement pojo.MappedStatement, params []reflect.Value, results reflect.Value)

	Insert(statement pojo.MappedStatement, params []reflect.Value) int

	Update(statement pojo.MappedStatement, params []reflect.Value) int

	Delete(statement pojo.MappedStatement, params []reflect.Value) int

	GetMapper(itf any) any
}

Jump to

Keyboard shortcuts

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