Documentation ¶
Index ¶
- func FlushHandlers()
- func KeepHandler(name string, newHandler *Handler)
- type CommitCallback
- type ErrorCallback
- type ExecCallback
- type Handler
- func (s *Handler) Execute(queryString string, execCallback ExecCallback, errCallback ErrorCallback)
- func (s *Handler) Query(executor *QueryExecutor)
- func (s *Handler) SyncQuery(sqlString string) (*RecordSet, error)
- func (s *Handler) Transaction(onCommit CommitCallback, onRollback RollbackCallback, ...)
- type QueryCallback
- type QueryExecutor
- type RecordSet
- type RollbackCallback
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FlushHandlers ¶
func FlushHandlers()
Types ¶
type CommitCallback ¶
type CommitCallback func()
type ErrorCallback ¶
type ErrorCallback func(error)
type ExecCallback ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func GetHandler ¶
func NewHandler ¶
NewHandler 새연결
func (*Handler) Execute ¶
func (s *Handler) Execute(queryString string, execCallback ExecCallback, errCallback ErrorCallback)
func (*Handler) Transaction ¶
func (s *Handler) Transaction(onCommit CommitCallback, onRollback RollbackCallback, queries ...*QueryExecutor)
Transaction 트랜잭션을 위한 쿼리 호출 (주의: procedure 를 사용할 경우 procedure 내에서 transaction 처리를 하면 안됨)
type QueryCallback ¶
type QueryExecutor ¶
type QueryExecutor struct { SqlString string OnQuery QueryCallback OnError ErrorCallback }
type RecordSet ¶
type RecordSet struct {
// contains filtered or unexported fields
}
func (*RecordSet) NextResultSet ¶
type RollbackCallback ¶
type RollbackCallback func(error)
Click to show internal directories.
Click to hide internal directories.