Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InterfaceSetter ¶
Types ¶
type ExecResult ¶
type QueryResult ¶
type Result ¶
type Result interface { QueryResult ExecResult }
type SliceResult ¶
type SliceResult[T any] struct { // contains filtered or unexported fields }
func NewSliceResult ¶
func NewSliceResult[T any](data []T, columns []string, setter ValueSetter) *SliceResult[T]
func (*SliceResult[T]) Close ¶
func (r *SliceResult[T]) Close() error
func (*SliceResult[T]) Columns ¶
func (r *SliceResult[T]) Columns() ([]string, error)
func (*SliceResult[T]) LastInsertId ¶
func (r *SliceResult[T]) LastInsertId() (int64, error)
func (*SliceResult[T]) Next ¶
func (r *SliceResult[T]) Next() bool
func (*SliceResult[T]) RowsAffected ¶
func (r *SliceResult[T]) RowsAffected() (int64, error)
func (*SliceResult[T]) Scan ¶
func (r *SliceResult[T]) Scan(dest ...interface{}) error
type SturctSetter ¶
type SturctSetter struct {
// contains filtered or unexported fields
}
func NewSturctSetter ¶
func NewSturctSetter(tagName string) *SturctSetter
func (*SturctSetter) Set ¶
func (s *SturctSetter) Set(d interface{}, columns []string, dest []interface{}) error
type ValueSetter ¶
Click to show internal directories.
Click to hide internal directories.