mirror of
https://github.com/github/codeql.git
synced 2026-04-22 07:15:15 +02:00
Remove duplicate stubs
This commit is contained in:
@@ -1,13 +1,9 @@
|
||||
package sqlx
|
||||
|
||||
import "database/sql"
|
||||
|
||||
type Row struct {
|
||||
// Mapper *reflectx.Mapper
|
||||
}
|
||||
|
||||
// stub Row::MapScan, Row::StructScan, Row::SliceScan, Row::Scan
|
||||
|
||||
func (r *Row) MapScan(dest map[string]interface{}) error {
|
||||
return nil
|
||||
}
|
||||
@@ -23,26 +19,3 @@ func (r *Row) SliceScan(dest []interface{}) error {
|
||||
func (r *Row) Scan(dest ...interface{}) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
type Rows struct {
|
||||
*sql.Rows
|
||||
|
||||
// Mapper *reflectx.Mapper
|
||||
// contains filtered or unexported fields
|
||||
}
|
||||
|
||||
func (r *Rows) MapScan(dest map[string]interface{}) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (r *Rows) StructScan(dest interface{}) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (r *Rows) SliceScan(dest []interface{}) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (r *Rows) Scan(dest ...interface{}) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -42,51 +42,6 @@ type QueryerContext interface {
|
||||
QueryRowxContext(ctx context.Context, query string, args ...interface{}) *Row
|
||||
}
|
||||
|
||||
type Row struct {
|
||||
// Mapper *reflectx.Mapper
|
||||
}
|
||||
|
||||
// stub Row::MapScan, Row::StructScan, Row::SliceScan, Row::Scan
|
||||
|
||||
func (r *Row) MapScan(dest map[string]interface{}) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (r *Row) StructScan(dest interface{}) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (r *Row) SliceScan(dest []interface{}) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (r *Row) Scan(dest ...interface{}) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
type Rows struct {
|
||||
*sql.Rows
|
||||
|
||||
// Mapper *reflectx.Mapper
|
||||
// contains filtered or unexported fields
|
||||
}
|
||||
|
||||
func (r *Rows) MapScan(dest map[string]interface{}) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (r *Rows) StructScan(dest interface{}) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (r *Rows) SliceScan(dest []interface{}) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (r *Rows) Scan(dest ...interface{}) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func NamedQuery(e Ext, query string, arg interface{}) (*Rows, error) {
|
||||
return e.Queryx(query, arg)
|
||||
}
|
||||
@@ -110,23 +65,3 @@ func Select(q Queryer, dest interface{}, query string, args ...interface{}) erro
|
||||
func SelectContext(ctx context.Context, q QueryerContext, dest interface{}, query string, args ...interface{}) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
type Conn struct {
|
||||
*sql.Conn
|
||||
}
|
||||
|
||||
func (c *Conn) GetContext(ctx context.Context, dest interface{}, query string, args ...interface{}) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (c *Conn) SelectContext(ctx context.Context, dest interface{}, query string, args ...interface{}) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (c *Conn) QueryRowxContext(ctx context.Context, query string, args ...interface{}) *Row {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (c *Conn) QueryxContext(ctx context.Context, query string, args ...interface{}) (*Rows, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user