Documentation ¶
Index ¶
- type DefaultSqlSession
- func (dSqlSession *DefaultSqlSession) Delete(statement pojo.MappedStatement, params []reflect.Value) int
- func (dSqlSession *DefaultSqlSession) GetMapper(itf any) any
- func (dSqlSession *DefaultSqlSession) Insert(statement pojo.MappedStatement, params []reflect.Value) int
- func (dSqlSession *DefaultSqlSession) SelectList(statement pojo.MappedStatement, params []reflect.Value, results reflect.Value)
- func (dSqlSession *DefaultSqlSession) SelectOne(statement pojo.MappedStatement, params []reflect.Value, result reflect.Value)
- func (dSqlSession *DefaultSqlSession) Update(statement pojo.MappedStatement, params []reflect.Value) int
- type DefaultSqlSessionFactory
- type Executor
- type Factory
- type SimpleExecutor
- type SqlSession
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 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 }
Click to show internal directories.
Click to hide internal directories.