mirror of
https://github.com/github/codeql.git
synced 2026-01-29 06:12:58 +01:00
Update dependency stubs
This commit is contained in:
@@ -2,7 +2,4 @@ module main
|
||||
|
||||
go 1.14
|
||||
|
||||
require (
|
||||
github.com/sendgrid/sendgrid-go v3.5.0+incompatible
|
||||
github.com/stretchr/testify v1.5.1 // indirect
|
||||
)
|
||||
require github.com/sendgrid/sendgrid-go v3.5.0+incompatible
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
# github.com/sendgrid/sendgrid-go v3.5.0+incompatible
|
||||
## explicit
|
||||
github.com/sendgrid/sendgrid-go
|
||||
# github.com/stretchr/testify v1.5.1
|
||||
## explicit
|
||||
github.com/stretchr/testify
|
||||
|
||||
@@ -59,7 +59,7 @@ func (_ *Client) Connect(_ context.Context) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ *Client) Database(_ string, _ ...*interface{}) *Database {
|
||||
func (_ *Client) Database(_ string, _ ...interface{}) *Database {
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -67,11 +67,11 @@ func (_ *Client) Disconnect(_ context.Context) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ *Client) ListDatabaseNames(_ context.Context, _ interface{}, _ ...*interface{}) ([]string, error) {
|
||||
func (_ *Client) ListDatabaseNames(_ context.Context, _ interface{}, _ ...interface{}) ([]string, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ *Client) ListDatabases(_ context.Context, _ interface{}, _ ...*interface{}) (ListDatabasesResult, error) {
|
||||
func (_ *Client) ListDatabases(_ context.Context, _ interface{}, _ ...interface{}) (ListDatabasesResult, error) {
|
||||
return ListDatabasesResult{}, nil
|
||||
}
|
||||
|
||||
@@ -79,11 +79,11 @@ func (_ *Client) NumberSessionsInProgress() int {
|
||||
return 0
|
||||
}
|
||||
|
||||
func (_ *Client) Ping(_ context.Context, _ *interface{}) error {
|
||||
func (_ *Client) Ping(_ context.Context, _ interface{}) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ *Client) StartSession(_ ...*interface{}) (Session, error) {
|
||||
func (_ *Client) StartSession(_ ...interface{}) (Session, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
@@ -91,29 +91,29 @@ func (_ *Client) UseSession(_ context.Context, _ func(SessionContext) error) err
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ *Client) UseSessionWithOptions(_ context.Context, _ *interface{}, _ func(SessionContext) error) error {
|
||||
func (_ *Client) UseSessionWithOptions(_ context.Context, _ interface{}, _ func(SessionContext) error) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ *Client) Watch(_ context.Context, _ interface{}, _ ...*interface{}) (*ChangeStream, error) {
|
||||
func (_ *Client) Watch(_ context.Context, _ interface{}, _ ...interface{}) (*ChangeStream, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
type Collection struct{}
|
||||
|
||||
func (_ *Collection) Aggregate(_ context.Context, _ interface{}, _ ...*interface{}) (*Cursor, error) {
|
||||
func (_ *Collection) Aggregate(_ context.Context, _ interface{}, _ ...interface{}) (*Cursor, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ *Collection) BulkWrite(_ context.Context, _ []WriteModel, _ ...*interface{}) (*BulkWriteResult, error) {
|
||||
func (_ *Collection) BulkWrite(_ context.Context, _ []WriteModel, _ ...interface{}) (*BulkWriteResult, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ *Collection) Clone(_ ...*interface{}) (*Collection, error) {
|
||||
func (_ *Collection) Clone(_ ...interface{}) (*Collection, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ *Collection) CountDocuments(_ context.Context, _ interface{}, _ ...*interface{}) (int64, error) {
|
||||
func (_ *Collection) CountDocuments(_ context.Context, _ interface{}, _ ...interface{}) (int64, error) {
|
||||
return 0, nil
|
||||
}
|
||||
|
||||
@@ -121,15 +121,15 @@ func (_ *Collection) Database() *Database {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ *Collection) DeleteMany(_ context.Context, _ interface{}, _ ...*interface{}) (*DeleteResult, error) {
|
||||
func (_ *Collection) DeleteMany(_ context.Context, _ interface{}, _ ...interface{}) (*DeleteResult, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ *Collection) DeleteOne(_ context.Context, _ interface{}, _ ...*interface{}) (*DeleteResult, error) {
|
||||
func (_ *Collection) DeleteOne(_ context.Context, _ interface{}, _ ...interface{}) (*DeleteResult, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ *Collection) Distinct(_ context.Context, _ string, _ interface{}, _ ...*interface{}) ([]interface{}, error) {
|
||||
func (_ *Collection) Distinct(_ context.Context, _ string, _ interface{}, _ ...interface{}) ([]interface{}, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
@@ -137,27 +137,27 @@ func (_ *Collection) Drop(_ context.Context) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ *Collection) EstimatedDocumentCount(_ context.Context, _ ...*interface{}) (int64, error) {
|
||||
func (_ *Collection) EstimatedDocumentCount(_ context.Context, _ ...interface{}) (int64, error) {
|
||||
return 0, nil
|
||||
}
|
||||
|
||||
func (_ *Collection) Find(_ context.Context, _ interface{}, _ ...*interface{}) (*Cursor, error) {
|
||||
func (_ *Collection) Find(_ context.Context, _ interface{}, _ ...interface{}) (*Cursor, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ *Collection) FindOne(_ context.Context, _ interface{}, _ ...*interface{}) *SingleResult {
|
||||
func (_ *Collection) FindOne(_ context.Context, _ interface{}, _ ...interface{}) *SingleResult {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ *Collection) FindOneAndDelete(_ context.Context, _ interface{}, _ ...*interface{}) *SingleResult {
|
||||
func (_ *Collection) FindOneAndDelete(_ context.Context, _ interface{}, _ ...interface{}) *SingleResult {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ *Collection) FindOneAndReplace(_ context.Context, _ interface{}, _ interface{}, _ ...*interface{}) *SingleResult {
|
||||
func (_ *Collection) FindOneAndReplace(_ context.Context, _ interface{}, _ interface{}, _ ...interface{}) *SingleResult {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ *Collection) FindOneAndUpdate(_ context.Context, _ interface{}, _ interface{}, _ ...*interface{}) *SingleResult {
|
||||
func (_ *Collection) FindOneAndUpdate(_ context.Context, _ interface{}, _ interface{}, _ ...interface{}) *SingleResult {
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -165,11 +165,11 @@ func (_ *Collection) Indexes() IndexView {
|
||||
return IndexView{}
|
||||
}
|
||||
|
||||
func (_ *Collection) InsertMany(_ context.Context, _ []interface{}, _ ...*interface{}) (*InsertManyResult, error) {
|
||||
func (_ *Collection) InsertMany(_ context.Context, _ []interface{}, _ ...interface{}) (*InsertManyResult, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ *Collection) InsertOne(_ context.Context, _ interface{}, _ ...*interface{}) (*InsertOneResult, error) {
|
||||
func (_ *Collection) InsertOne(_ context.Context, _ interface{}, _ ...interface{}) (*InsertOneResult, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
@@ -177,19 +177,19 @@ func (_ *Collection) Name() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
func (_ *Collection) ReplaceOne(_ context.Context, _ interface{}, _ interface{}, _ ...*interface{}) (*UpdateResult, error) {
|
||||
func (_ *Collection) ReplaceOne(_ context.Context, _ interface{}, _ interface{}, _ ...interface{}) (*UpdateResult, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ *Collection) UpdateMany(_ context.Context, _ interface{}, _ interface{}, _ ...*interface{}) (*UpdateResult, error) {
|
||||
func (_ *Collection) UpdateMany(_ context.Context, _ interface{}, _ interface{}, _ ...interface{}) (*UpdateResult, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ *Collection) UpdateOne(_ context.Context, _ interface{}, _ interface{}, _ ...*interface{}) (*UpdateResult, error) {
|
||||
func (_ *Collection) UpdateOne(_ context.Context, _ interface{}, _ interface{}, _ ...interface{}) (*UpdateResult, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ *Collection) Watch(_ context.Context, _ interface{}, _ ...*interface{}) (*ChangeStream, error) {
|
||||
func (_ *Collection) Watch(_ context.Context, _ interface{}, _ ...interface{}) (*ChangeStream, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
@@ -227,7 +227,7 @@ func (_ *Cursor) TryNext(_ context.Context) bool {
|
||||
|
||||
type Database struct{}
|
||||
|
||||
func (_ *Database) Aggregate(_ context.Context, _ interface{}, _ ...*interface{}) (*Cursor, error) {
|
||||
func (_ *Database) Aggregate(_ context.Context, _ interface{}, _ ...interface{}) (*Cursor, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
@@ -235,7 +235,7 @@ func (_ *Database) Client() *Client {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ *Database) Collection(_ string, _ ...*interface{}) *Collection {
|
||||
func (_ *Database) Collection(_ string, _ ...interface{}) *Collection {
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -243,11 +243,11 @@ func (_ *Database) Drop(_ context.Context) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ *Database) ListCollectionNames(_ context.Context, _ interface{}, _ ...*interface{}) ([]string, error) {
|
||||
func (_ *Database) ListCollectionNames(_ context.Context, _ interface{}, _ ...interface{}) ([]string, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ *Database) ListCollections(_ context.Context, _ interface{}, _ ...*interface{}) (*Cursor, error) {
|
||||
func (_ *Database) ListCollections(_ context.Context, _ interface{}, _ ...interface{}) (*Cursor, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
@@ -255,27 +255,27 @@ func (_ *Database) Name() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
func (_ *Database) ReadConcern() *interface{} {
|
||||
func (_ *Database) ReadConcern() interface{} {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ *Database) ReadPreference() *interface{} {
|
||||
func (_ *Database) ReadPreference() interface{} {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ *Database) RunCommand(_ context.Context, _ interface{}, _ ...*interface{}) *SingleResult {
|
||||
func (_ *Database) RunCommand(_ context.Context, _ interface{}, _ ...interface{}) *SingleResult {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ *Database) RunCommandCursor(_ context.Context, _ interface{}, _ ...*interface{}) (*Cursor, error) {
|
||||
func (_ *Database) RunCommandCursor(_ context.Context, _ interface{}, _ ...interface{}) (*Cursor, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ *Database) Watch(_ context.Context, _ interface{}, _ ...*interface{}) (*ChangeStream, error) {
|
||||
func (_ *Database) Watch(_ context.Context, _ interface{}, _ ...interface{}) (*ChangeStream, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ *Database) WriteConcern() *interface{} {
|
||||
func (_ *Database) WriteConcern() interface{} {
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -291,28 +291,28 @@ type DeleteResult struct {
|
||||
|
||||
type IndexModel struct {
|
||||
Keys interface{}
|
||||
Options *interface{}
|
||||
Options interface{}
|
||||
}
|
||||
|
||||
type IndexView struct{}
|
||||
|
||||
func (_ IndexView) CreateMany(_ context.Context, _ []IndexModel, _ ...*interface{}) ([]string, error) {
|
||||
func (_ IndexView) CreateMany(_ context.Context, _ []IndexModel, _ ...interface{}) ([]string, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ IndexView) CreateOne(_ context.Context, _ IndexModel, _ ...*interface{}) (string, error) {
|
||||
func (_ IndexView) CreateOne(_ context.Context, _ IndexModel, _ ...interface{}) (string, error) {
|
||||
return "", nil
|
||||
}
|
||||
|
||||
func (_ IndexView) DropAll(_ context.Context, _ ...*interface{}) (interface{}, error) {
|
||||
func (_ IndexView) DropAll(_ context.Context, _ ...interface{}) (interface{}, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ IndexView) DropOne(_ context.Context, _ string, _ ...*interface{}) (interface{}, error) {
|
||||
func (_ IndexView) DropOne(_ context.Context, _ string, _ ...interface{}) (interface{}, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ IndexView) List(_ context.Context, _ ...*interface{}) (*Cursor, error) {
|
||||
func (_ IndexView) List(_ context.Context, _ ...interface{}) (*Cursor, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
@@ -334,20 +334,20 @@ type Pipeline []interface{}
|
||||
type Session interface {
|
||||
AbortTransaction(_ context.Context) error
|
||||
AdvanceClusterTime(_ interface{}) error
|
||||
AdvanceOperationTime(_ *interface{}) error
|
||||
AdvanceOperationTime(_ interface{}) error
|
||||
Client() *Client
|
||||
ClusterTime() interface{}
|
||||
CommitTransaction(_ context.Context) error
|
||||
EndSession(_ context.Context)
|
||||
OperationTime() *interface{}
|
||||
StartTransaction(_ ...*interface{}) error
|
||||
WithTransaction(_ context.Context, _ func(SessionContext) (interface{}, error), _ ...*interface{}) (interface{}, error)
|
||||
OperationTime() interface{}
|
||||
StartTransaction(_ ...interface{}) error
|
||||
WithTransaction(_ context.Context, _ func(SessionContext) (interface{}, error), _ ...interface{}) (interface{}, error)
|
||||
}
|
||||
|
||||
type SessionContext interface {
|
||||
AbortTransaction(_ context.Context) error
|
||||
AdvanceClusterTime(_ interface{}) error
|
||||
AdvanceOperationTime(_ *interface{}) error
|
||||
AdvanceOperationTime(_ interface{}) error
|
||||
Client() *Client
|
||||
ClusterTime() interface{}
|
||||
CommitTransaction(_ context.Context) error
|
||||
@@ -355,10 +355,10 @@ type SessionContext interface {
|
||||
Done() <-chan struct{}
|
||||
EndSession(_ context.Context)
|
||||
Err() error
|
||||
OperationTime() *interface{}
|
||||
StartTransaction(_ ...*interface{}) error
|
||||
OperationTime() interface{}
|
||||
StartTransaction(_ ...interface{}) error
|
||||
Value(_ interface{}) interface{}
|
||||
WithTransaction(_ context.Context, _ func(SessionContext) (interface{}, error), _ ...*interface{}) (interface{}, error)
|
||||
WithTransaction(_ context.Context, _ func(SessionContext) (interface{}, error), _ ...interface{}) (interface{}, error)
|
||||
}
|
||||
|
||||
type SingleResult struct{}
|
||||
|
||||
@@ -4,11 +4,6 @@ go 1.13
|
||||
|
||||
require (
|
||||
github.com/Masterminds/squirrel v1.1.0
|
||||
github.com/github/depstubber v0.0.0-20200414033246-a63ca77a1581 // indirect
|
||||
github.com/go-pg/pg v8.0.6+incompatible
|
||||
github.com/go-pg/pg/v9 v9.1.3
|
||||
github.com/go-sql-driver/mysql v1.5.0 // indirect
|
||||
github.com/lib/pq v1.3.0 // indirect
|
||||
github.com/mattn/go-sqlite3 v2.0.3+incompatible // indirect
|
||||
golang.org/x/net v0.0.0-20200226121028-0de0cce0169b // indirect
|
||||
)
|
||||
|
||||
@@ -13,12 +13,8 @@ import (
|
||||
)
|
||||
|
||||
type BaseRunner interface {
|
||||
Exec(_ string, _ ...interface{}) (sql.Result, interface {
|
||||
Error() string
|
||||
})
|
||||
Query(_ string, _ ...interface{}) (*sql.Rows, interface {
|
||||
Error() string
|
||||
})
|
||||
Exec(_ string, _ ...interface{}) (sql.Result, error)
|
||||
Query(_ string, _ ...interface{}) (*sql.Rows, error)
|
||||
}
|
||||
|
||||
func Expr(_ string, _ ...interface{}) interface{} {
|
||||
@@ -26,15 +22,11 @@ func Expr(_ string, _ ...interface{}) interface{} {
|
||||
}
|
||||
|
||||
type PlaceholderFormat interface {
|
||||
ReplacePlaceholders(_ string) (string, interface {
|
||||
Error() string
|
||||
})
|
||||
ReplacePlaceholders(_ string) (string, error)
|
||||
}
|
||||
|
||||
type RowScanner interface {
|
||||
Scan(_ ...interface{}) interface {
|
||||
Error() string
|
||||
}
|
||||
Scan(_ ...interface{}) error
|
||||
}
|
||||
|
||||
func Select(_ ...string) SelectBuilder {
|
||||
@@ -55,15 +47,11 @@ func (_ SelectBuilder) Distinct() SelectBuilder {
|
||||
return SelectBuilder{}
|
||||
}
|
||||
|
||||
func (_ SelectBuilder) Exec() (sql.Result, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ SelectBuilder) Exec() (sql.Result, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ SelectBuilder) ExecContext(_ context.Context) (sql.Result, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ SelectBuilder) ExecContext(_ context.Context) (sql.Result, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
@@ -123,15 +111,11 @@ func (_ SelectBuilder) Prefix(_ string, _ ...interface{}) SelectBuilder {
|
||||
return SelectBuilder{}
|
||||
}
|
||||
|
||||
func (_ SelectBuilder) Query() (*sql.Rows, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ SelectBuilder) Query() (*sql.Rows, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ SelectBuilder) QueryContext(_ context.Context) (*sql.Rows, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ SelectBuilder) QueryContext(_ context.Context) (*sql.Rows, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
@@ -155,15 +139,11 @@ func (_ SelectBuilder) RunWith(_ BaseRunner) SelectBuilder {
|
||||
return SelectBuilder{}
|
||||
}
|
||||
|
||||
func (_ SelectBuilder) Scan(_ ...interface{}) interface {
|
||||
Error() string
|
||||
} {
|
||||
func (_ SelectBuilder) Scan(_ ...interface{}) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ SelectBuilder) ScanContext(_ context.Context, _ ...interface{}) interface {
|
||||
Error() string
|
||||
} {
|
||||
func (_ SelectBuilder) ScanContext(_ context.Context, _ ...interface{}) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -171,9 +151,7 @@ func (_ SelectBuilder) Suffix(_ string, _ ...interface{}) SelectBuilder {
|
||||
return SelectBuilder{}
|
||||
}
|
||||
|
||||
func (_ SelectBuilder) ToSql() (string, []interface{}, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ SelectBuilder) ToSql() (string, []interface{}, error) {
|
||||
return "", nil, nil
|
||||
}
|
||||
|
||||
|
||||
298
ql/test/library-tests/semmle/go/frameworks/SQL/vendor/github.com/go-pg/pg/orm/stub.go
generated
vendored
298
ql/test/library-tests/semmle/go/frameworks/SQL/vendor/github.com/go-pg/pg/orm/stub.go
generated
vendored
@@ -14,9 +14,7 @@ import (
|
||||
)
|
||||
|
||||
type ColumnScanner interface {
|
||||
ScanColumn(_ int, _ string, _ interface{}, _ int) interface {
|
||||
Error() string
|
||||
}
|
||||
ScanColumn(_ int, _ string, _ interface{}, _ int) error
|
||||
}
|
||||
|
||||
type CreateTableOptions struct {
|
||||
@@ -28,54 +26,24 @@ type CreateTableOptions struct {
|
||||
|
||||
type DB interface {
|
||||
Context() context.Context
|
||||
CopyFrom(_ io.Reader, _ interface{}, _ ...interface{}) (Result, interface {
|
||||
Error() string
|
||||
})
|
||||
CopyTo(_ io.Writer, _ interface{}, _ ...interface{}) (Result, interface {
|
||||
Error() string
|
||||
})
|
||||
Delete(_ interface{}) interface {
|
||||
Error() string
|
||||
}
|
||||
Exec(_ interface{}, _ ...interface{}) (Result, interface {
|
||||
Error() string
|
||||
})
|
||||
ExecContext(_ context.Context, _ interface{}, _ ...interface{}) (Result, interface {
|
||||
Error() string
|
||||
})
|
||||
ExecOne(_ interface{}, _ ...interface{}) (Result, interface {
|
||||
Error() string
|
||||
})
|
||||
ExecOneContext(_ context.Context, _ interface{}, _ ...interface{}) (Result, interface {
|
||||
Error() string
|
||||
})
|
||||
ForceDelete(_ interface{}) interface {
|
||||
Error() string
|
||||
}
|
||||
FormatQuery(_ []uint8, _ string, _ ...interface{}) []uint8
|
||||
Insert(_ ...interface{}) interface {
|
||||
Error() string
|
||||
}
|
||||
CopyFrom(_ io.Reader, _ interface{}, _ ...interface{}) (Result, error)
|
||||
CopyTo(_ io.Writer, _ interface{}, _ ...interface{}) (Result, error)
|
||||
Delete(_ interface{}) error
|
||||
Exec(_ interface{}, _ ...interface{}) (Result, error)
|
||||
ExecContext(_ context.Context, _ interface{}, _ ...interface{}) (Result, error)
|
||||
ExecOne(_ interface{}, _ ...interface{}) (Result, error)
|
||||
ExecOneContext(_ context.Context, _ interface{}, _ ...interface{}) (Result, error)
|
||||
ForceDelete(_ interface{}) error
|
||||
FormatQuery(_ []byte, _ string, _ ...interface{}) []byte
|
||||
Insert(_ ...interface{}) error
|
||||
Model(_ ...interface{}) *Query
|
||||
ModelContext(_ context.Context, _ ...interface{}) *Query
|
||||
Query(_ interface{}, _ interface{}, _ ...interface{}) (Result, interface {
|
||||
Error() string
|
||||
})
|
||||
QueryContext(_ context.Context, _ interface{}, _ interface{}, _ ...interface{}) (Result, interface {
|
||||
Error() string
|
||||
})
|
||||
QueryOne(_ interface{}, _ interface{}, _ ...interface{}) (Result, interface {
|
||||
Error() string
|
||||
})
|
||||
QueryOneContext(_ context.Context, _ interface{}, _ interface{}, _ ...interface{}) (Result, interface {
|
||||
Error() string
|
||||
})
|
||||
Select(_ interface{}) interface {
|
||||
Error() string
|
||||
}
|
||||
Update(_ interface{}) interface {
|
||||
Error() string
|
||||
}
|
||||
Query(_ interface{}, _ interface{}, _ ...interface{}) (Result, error)
|
||||
QueryContext(_ context.Context, _ interface{}, _ interface{}, _ ...interface{}) (Result, error)
|
||||
QueryOne(_ interface{}, _ interface{}, _ ...interface{}) (Result, error)
|
||||
QueryOneContext(_ context.Context, _ interface{}, _ interface{}, _ ...interface{}) (Result, error)
|
||||
Select(_ interface{}) error
|
||||
Update(_ interface{}) error
|
||||
}
|
||||
|
||||
type DropTableOptions struct {
|
||||
@@ -96,7 +64,7 @@ type Field struct {
|
||||
OnUpdate string
|
||||
}
|
||||
|
||||
func (_ *Field) AppendValue(_ []uint8, _ reflect.Value, _ int) []uint8 {
|
||||
func (_ *Field) AppendValue(_ []byte, _ reflect.Value, _ int) []byte {
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -104,7 +72,7 @@ func (_ *Field) Copy() *Field {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ *Field) HasFlag(_ uint8) bool {
|
||||
func (_ *Field) HasFlag(_ byte) bool {
|
||||
return false
|
||||
}
|
||||
|
||||
@@ -116,13 +84,11 @@ func (_ *Field) OmitZero() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
func (_ *Field) ScanValue(_ reflect.Value, _ interface{}, _ int) interface {
|
||||
Error() string
|
||||
} {
|
||||
func (_ *Field) ScanValue(_ reflect.Value, _ interface{}, _ int) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ *Field) SetFlag(_ uint8) {}
|
||||
func (_ *Field) SetFlag(_ byte) {}
|
||||
|
||||
func (_ *Field) Value(_ reflect.Value) reflect.Value {
|
||||
return reflect.Value{}
|
||||
@@ -132,7 +98,7 @@ type Method struct {
|
||||
Index int
|
||||
}
|
||||
|
||||
func (_ *Method) AppendValue(_ []uint8, _ reflect.Value, _ int) []uint8 {
|
||||
func (_ *Method) AppendValue(_ []byte, _ reflect.Value, _ int) []byte {
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -145,55 +111,31 @@ func (_ *Method) Value(_ reflect.Value) reflect.Value {
|
||||
}
|
||||
|
||||
type Model interface {
|
||||
AddModel(_ ColumnScanner) interface {
|
||||
Error() string
|
||||
}
|
||||
AfterDelete(_ context.Context, _ DB) interface {
|
||||
Error() string
|
||||
}
|
||||
AfterInsert(_ context.Context, _ DB) interface {
|
||||
Error() string
|
||||
}
|
||||
AfterQuery(_ context.Context, _ DB) interface {
|
||||
Error() string
|
||||
}
|
||||
AfterSelect(_ context.Context, _ DB) interface {
|
||||
Error() string
|
||||
}
|
||||
AfterUpdate(_ context.Context, _ DB) interface {
|
||||
Error() string
|
||||
}
|
||||
BeforeDelete(_ context.Context, _ DB) interface {
|
||||
Error() string
|
||||
}
|
||||
BeforeInsert(_ context.Context, _ DB) interface {
|
||||
Error() string
|
||||
}
|
||||
BeforeSelectQuery(_ context.Context, _ DB, _ *Query) (*Query, interface {
|
||||
Error() string
|
||||
})
|
||||
BeforeUpdate(_ context.Context, _ DB) interface {
|
||||
Error() string
|
||||
}
|
||||
Init() interface {
|
||||
Error() string
|
||||
}
|
||||
AddModel(_ ColumnScanner) error
|
||||
AfterDelete(_ context.Context, _ DB) error
|
||||
AfterInsert(_ context.Context, _ DB) error
|
||||
AfterQuery(_ context.Context, _ DB) error
|
||||
AfterSelect(_ context.Context, _ DB) error
|
||||
AfterUpdate(_ context.Context, _ DB) error
|
||||
BeforeDelete(_ context.Context, _ DB) error
|
||||
BeforeInsert(_ context.Context, _ DB) error
|
||||
BeforeSelectQuery(_ context.Context, _ DB, _ *Query) (*Query, error)
|
||||
BeforeUpdate(_ context.Context, _ DB) error
|
||||
Init() error
|
||||
NewModel() ColumnScanner
|
||||
}
|
||||
|
||||
func Q(_ string, _ ...interface{}) *interface{} {
|
||||
func Q(_ string, _ ...interface{}) interface{} {
|
||||
return nil
|
||||
}
|
||||
|
||||
type Query struct{}
|
||||
|
||||
func (_ *Query) AppendFormat(_ []uint8, _ QueryFormatter) []uint8 {
|
||||
func (_ *Query) AppendFormat(_ []byte, _ QueryFormatter) []byte {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ *Query) Apply(_ func(*Query) (*Query, interface {
|
||||
Error() string
|
||||
})) *Query {
|
||||
func (_ *Query) Apply(_ func(*Query) (*Query, error)) *Query {
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -213,33 +155,23 @@ func (_ *Query) Copy() *Query {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ *Query) CopyFrom(_ io.Reader, _ interface{}, _ ...interface{}) (Result, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ *Query) CopyFrom(_ io.Reader, _ interface{}, _ ...interface{}) (Result, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ *Query) CopyTo(_ io.Writer, _ interface{}, _ ...interface{}) (Result, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ *Query) CopyTo(_ io.Writer, _ interface{}, _ ...interface{}) (Result, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ *Query) Count() (int, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ *Query) Count() (int, error) {
|
||||
return 0, nil
|
||||
}
|
||||
|
||||
func (_ *Query) CountEstimate(_ int) (int, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ *Query) CountEstimate(_ int) (int, error) {
|
||||
return 0, nil
|
||||
}
|
||||
|
||||
func (_ *Query) CreateTable(_ *CreateTableOptions) interface {
|
||||
Error() string
|
||||
} {
|
||||
func (_ *Query) CreateTable(_ *CreateTableOptions) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -247,9 +179,7 @@ func (_ *Query) DB(_ DB) *Query {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ *Query) Delete(_ ...interface{}) (Result, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ *Query) Delete(_ ...interface{}) (Result, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
@@ -257,9 +187,7 @@ func (_ *Query) Deleted() *Query {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ *Query) DropTable(_ *DropTableOptions) interface {
|
||||
Error() string
|
||||
} {
|
||||
func (_ *Query) DropTable(_ *DropTableOptions) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -267,27 +195,19 @@ func (_ *Query) ExcludeColumn(_ ...string) *Query {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ *Query) Exec(_ interface{}, _ ...interface{}) (Result, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ *Query) Exec(_ interface{}, _ ...interface{}) (Result, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ *Query) ExecOne(_ interface{}, _ ...interface{}) (Result, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ *Query) ExecOne(_ interface{}, _ ...interface{}) (Result, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ *Query) Exists() (bool, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ *Query) Exists() (bool, error) {
|
||||
return false, nil
|
||||
}
|
||||
|
||||
func (_ *Query) First() interface {
|
||||
Error() string
|
||||
} {
|
||||
func (_ *Query) First() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -295,19 +215,15 @@ func (_ *Query) For(_ string, _ ...interface{}) *Query {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ *Query) ForEach(_ interface{}) interface {
|
||||
Error() string
|
||||
} {
|
||||
func (_ *Query) ForEach(_ interface{}) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ *Query) ForceDelete(_ ...interface{}) (Result, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ *Query) ForceDelete(_ ...interface{}) (Result, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ *Query) FormatQuery(_ []uint8, _ string, _ ...interface{}) []uint8 {
|
||||
func (_ *Query) FormatQuery(_ []byte, _ string, _ ...interface{}) []byte {
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -331,9 +247,7 @@ func (_ *Query) Having(_ string, _ ...interface{}) *Query {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ *Query) Insert(_ ...interface{}) (Result, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ *Query) Insert(_ ...interface{}) (Result, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
@@ -349,9 +263,7 @@ func (_ *Query) JoinOnOr(_ string, _ ...interface{}) *Query {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ *Query) Last() interface {
|
||||
Error() string
|
||||
} {
|
||||
func (_ *Query) Last() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -383,21 +295,15 @@ func (_ *Query) OrderExpr(_ string, _ ...interface{}) *Query {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ *Query) Query(_ interface{}, _ interface{}, _ ...interface{}) (Result, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ *Query) Query(_ interface{}, _ interface{}, _ ...interface{}) (Result, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ *Query) QueryOne(_ interface{}, _ interface{}, _ ...interface{}) (Result, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ *Query) QueryOne(_ interface{}, _ interface{}, _ ...interface{}) (Result, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ *Query) Relation(_ string, _ ...func(*Query) (*Query, interface {
|
||||
Error() string
|
||||
})) *Query {
|
||||
func (_ *Query) Relation(_ string, _ ...func(*Query) (*Query, error)) *Query {
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -405,27 +311,19 @@ func (_ *Query) Returning(_ string, _ ...interface{}) *Query {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ *Query) Select(_ ...interface{}) interface {
|
||||
Error() string
|
||||
} {
|
||||
func (_ *Query) Select(_ ...interface{}) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ *Query) SelectAndCount(_ ...interface{}) (int, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ *Query) SelectAndCount(_ ...interface{}) (int, error) {
|
||||
return 0, nil
|
||||
}
|
||||
|
||||
func (_ *Query) SelectAndCountEstimate(_ int, _ ...interface{}) (int, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ *Query) SelectAndCountEstimate(_ int, _ ...interface{}) (int, error) {
|
||||
return 0, nil
|
||||
}
|
||||
|
||||
func (_ *Query) SelectOrInsert(_ ...interface{}) (bool, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ *Query) SelectOrInsert(_ ...interface{}) (bool, error) {
|
||||
return false, nil
|
||||
}
|
||||
|
||||
@@ -441,15 +339,11 @@ func (_ *Query) TableExpr(_ string, _ ...interface{}) *Query {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ *Query) Update(_ ...interface{}) (Result, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ *Query) Update(_ ...interface{}) (Result, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ *Query) UpdateNotNull(_ ...interface{}) (Result, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ *Query) UpdateNotNull(_ ...interface{}) (Result, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
@@ -461,9 +355,7 @@ func (_ *Query) Where(_ string, _ ...interface{}) *Query {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ *Query) WhereGroup(_ func(*Query) (*Query, interface {
|
||||
Error() string
|
||||
})) *Query {
|
||||
func (_ *Query) WhereGroup(_ func(*Query) (*Query, error)) *Query {
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -479,9 +371,7 @@ func (_ *Query) WhereOr(_ string, _ ...interface{}) *Query {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ *Query) WhereOrGroup(_ func(*Query) (*Query, interface {
|
||||
Error() string
|
||||
})) *Query {
|
||||
func (_ *Query) WhereOrGroup(_ func(*Query) (*Query, error)) *Query {
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -502,7 +392,7 @@ func (_ *Query) WrapWith(_ string) *Query {
|
||||
}
|
||||
|
||||
type QueryFormatter interface {
|
||||
FormatQuery(_ []uint8, _ string, _ ...interface{}) []uint8
|
||||
FormatQuery(_ []byte, _ string, _ ...interface{}) []byte
|
||||
}
|
||||
|
||||
type Relation struct {
|
||||
@@ -549,13 +439,11 @@ type Table struct {
|
||||
|
||||
func (_ *Table) AddField(_ *Field) {}
|
||||
|
||||
func (_ *Table) AppendParam(_ []uint8, _ reflect.Value, _ string) ([]uint8, bool) {
|
||||
func (_ *Table) AppendParam(_ []byte, _ reflect.Value, _ string) ([]byte, bool) {
|
||||
return nil, false
|
||||
}
|
||||
|
||||
func (_ *Table) GetField(_ string) (*Field, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ *Table) GetField(_ string) (*Field, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
@@ -576,48 +464,24 @@ func (_ *Table) String() string {
|
||||
}
|
||||
|
||||
type TableModel interface {
|
||||
AddJoin(_ interface{}) *interface{}
|
||||
AddModel(_ ColumnScanner) interface {
|
||||
Error() string
|
||||
}
|
||||
AfterDelete(_ context.Context, _ DB) interface {
|
||||
Error() string
|
||||
}
|
||||
AfterInsert(_ context.Context, _ DB) interface {
|
||||
Error() string
|
||||
}
|
||||
AfterQuery(_ context.Context, _ DB) interface {
|
||||
Error() string
|
||||
}
|
||||
AfterSelect(_ context.Context, _ DB) interface {
|
||||
Error() string
|
||||
}
|
||||
AfterUpdate(_ context.Context, _ DB) interface {
|
||||
Error() string
|
||||
}
|
||||
AppendParam(_ []uint8, _ QueryFormatter, _ string) ([]uint8, bool)
|
||||
BeforeDelete(_ context.Context, _ DB) interface {
|
||||
Error() string
|
||||
}
|
||||
BeforeInsert(_ context.Context, _ DB) interface {
|
||||
Error() string
|
||||
}
|
||||
BeforeSelectQuery(_ context.Context, _ DB, _ *Query) (*Query, interface {
|
||||
Error() string
|
||||
})
|
||||
BeforeUpdate(_ context.Context, _ DB) interface {
|
||||
Error() string
|
||||
}
|
||||
GetJoin(_ string) *interface{}
|
||||
AddJoin(_ interface{}) interface{}
|
||||
AddModel(_ ColumnScanner) error
|
||||
AfterDelete(_ context.Context, _ DB) error
|
||||
AfterInsert(_ context.Context, _ DB) error
|
||||
AfterQuery(_ context.Context, _ DB) error
|
||||
AfterSelect(_ context.Context, _ DB) error
|
||||
AfterUpdate(_ context.Context, _ DB) error
|
||||
AppendParam(_ []byte, _ QueryFormatter, _ string) ([]byte, bool)
|
||||
BeforeDelete(_ context.Context, _ DB) error
|
||||
BeforeInsert(_ context.Context, _ DB) error
|
||||
BeforeSelectQuery(_ context.Context, _ DB, _ *Query) (*Query, error)
|
||||
BeforeUpdate(_ context.Context, _ DB) error
|
||||
GetJoin(_ string) interface{}
|
||||
GetJoins() []interface{}
|
||||
Index() []int
|
||||
Init() interface {
|
||||
Error() string
|
||||
}
|
||||
Init() error
|
||||
IsNil() bool
|
||||
Join(_ string, _ func(*Query) (*Query, interface {
|
||||
Error() string
|
||||
})) *interface{}
|
||||
Join(_ string, _ func(*Query) (*Query, error)) interface{}
|
||||
Kind() reflect.Kind
|
||||
Mount(_ reflect.Value)
|
||||
NewModel() ColumnScanner
|
||||
|
||||
374
ql/test/library-tests/semmle/go/frameworks/SQL/vendor/github.com/go-pg/pg/stub.go
generated
vendored
374
ql/test/library-tests/semmle/go/frameworks/SQL/vendor/github.com/go-pg/pg/stub.go
generated
vendored
@@ -19,105 +19,75 @@ type Conn struct{}
|
||||
|
||||
func (_ Conn) AddQueryHook(_ QueryHook) {}
|
||||
|
||||
func (_ Conn) Begin() (*Tx, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ Conn) Begin() (*Tx, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ Conn) Close() interface {
|
||||
Error() string
|
||||
} {
|
||||
func (_ Conn) Close() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ Conn) CopyFrom(_ io.Reader, _ interface{}, _ ...interface{}) (interface{}, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ Conn) CopyFrom(_ io.Reader, _ interface{}, _ ...interface{}) (interface{}, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ Conn) CopyTo(_ io.Writer, _ interface{}, _ ...interface{}) (interface{}, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ Conn) CopyTo(_ io.Writer, _ interface{}, _ ...interface{}) (interface{}, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ Conn) CreateComposite(_ interface{}, _ *interface{}) interface {
|
||||
Error() string
|
||||
} {
|
||||
func (_ Conn) CreateComposite(_ interface{}, _ interface{}) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ Conn) CreateTable(_ interface{}, _ *interface{}) interface {
|
||||
Error() string
|
||||
} {
|
||||
func (_ Conn) CreateTable(_ interface{}, _ interface{}) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ Conn) Delete(_ interface{}) interface {
|
||||
Error() string
|
||||
} {
|
||||
func (_ Conn) Delete(_ interface{}) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ Conn) DropComposite(_ interface{}, _ *interface{}) interface {
|
||||
Error() string
|
||||
} {
|
||||
func (_ Conn) DropComposite(_ interface{}, _ interface{}) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ Conn) DropTable(_ interface{}, _ *interface{}) interface {
|
||||
Error() string
|
||||
} {
|
||||
func (_ Conn) DropTable(_ interface{}, _ interface{}) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ Conn) Exec(_ interface{}, _ ...interface{}) (interface{}, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ Conn) Exec(_ interface{}, _ ...interface{}) (interface{}, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ Conn) ExecContext(_ context.Context, _ interface{}, _ ...interface{}) (interface{}, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ Conn) ExecContext(_ context.Context, _ interface{}, _ ...interface{}) (interface{}, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ Conn) ExecOne(_ interface{}, _ ...interface{}) (interface{}, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ Conn) ExecOne(_ interface{}, _ ...interface{}) (interface{}, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ Conn) ExecOneContext(_ context.Context, _ interface{}, _ ...interface{}) (interface{}, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ Conn) ExecOneContext(_ context.Context, _ interface{}, _ ...interface{}) (interface{}, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ Conn) ForceDelete(_ interface{}) interface {
|
||||
Error() string
|
||||
} {
|
||||
func (_ Conn) ForceDelete(_ interface{}) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ Conn) FormatQuery(_ []uint8, _ string, _ ...interface{}) []uint8 {
|
||||
func (_ Conn) FormatQuery(_ []byte, _ string, _ ...interface{}) []byte {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ Conn) Insert(_ ...interface{}) interface {
|
||||
Error() string
|
||||
} {
|
||||
func (_ Conn) Insert(_ ...interface{}) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ Conn) Model(_ ...interface{}) *interface{} {
|
||||
func (_ Conn) Model(_ ...interface{}) interface{} {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ Conn) ModelContext(_ context.Context, _ ...interface{}) *interface{} {
|
||||
func (_ Conn) ModelContext(_ context.Context, _ ...interface{}) interface{} {
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -129,53 +99,35 @@ func (_ Conn) PoolStats() *PoolStats {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ Conn) Prepare(_ string) (*Stmt, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ Conn) Prepare(_ string) (*Stmt, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ Conn) Query(_ interface{}, _ interface{}, _ ...interface{}) (interface{}, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ Conn) Query(_ interface{}, _ interface{}, _ ...interface{}) (interface{}, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ Conn) QueryContext(_ context.Context, _ interface{}, _ interface{}, _ ...interface{}) (interface{}, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ Conn) QueryContext(_ context.Context, _ interface{}, _ interface{}, _ ...interface{}) (interface{}, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ Conn) QueryOne(_ interface{}, _ interface{}, _ ...interface{}) (interface{}, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ Conn) QueryOne(_ interface{}, _ interface{}, _ ...interface{}) (interface{}, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ Conn) QueryOneContext(_ context.Context, _ interface{}, _ interface{}, _ ...interface{}) (interface{}, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ Conn) QueryOneContext(_ context.Context, _ interface{}, _ interface{}, _ ...interface{}) (interface{}, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ Conn) RunInTransaction(_ func(*Tx) interface {
|
||||
Error() string
|
||||
}) interface {
|
||||
Error() string
|
||||
} {
|
||||
func (_ Conn) RunInTransaction(_ func(*Tx) error) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ Conn) Select(_ interface{}) interface {
|
||||
Error() string
|
||||
} {
|
||||
func (_ Conn) Select(_ interface{}) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ Conn) Update(_ interface{}) interface {
|
||||
Error() string
|
||||
} {
|
||||
func (_ Conn) Update(_ interface{}) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -199,105 +151,75 @@ type DB struct{}
|
||||
|
||||
func (_ DB) AddQueryHook(_ QueryHook) {}
|
||||
|
||||
func (_ DB) Begin() (*Tx, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ DB) Begin() (*Tx, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ DB) Close() interface {
|
||||
Error() string
|
||||
} {
|
||||
func (_ DB) Close() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ DB) CopyFrom(_ io.Reader, _ interface{}, _ ...interface{}) (interface{}, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ DB) CopyFrom(_ io.Reader, _ interface{}, _ ...interface{}) (interface{}, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ DB) CopyTo(_ io.Writer, _ interface{}, _ ...interface{}) (interface{}, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ DB) CopyTo(_ io.Writer, _ interface{}, _ ...interface{}) (interface{}, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ DB) CreateComposite(_ interface{}, _ *interface{}) interface {
|
||||
Error() string
|
||||
} {
|
||||
func (_ DB) CreateComposite(_ interface{}, _ interface{}) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ DB) CreateTable(_ interface{}, _ *interface{}) interface {
|
||||
Error() string
|
||||
} {
|
||||
func (_ DB) CreateTable(_ interface{}, _ interface{}) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ DB) Delete(_ interface{}) interface {
|
||||
Error() string
|
||||
} {
|
||||
func (_ DB) Delete(_ interface{}) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ DB) DropComposite(_ interface{}, _ *interface{}) interface {
|
||||
Error() string
|
||||
} {
|
||||
func (_ DB) DropComposite(_ interface{}, _ interface{}) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ DB) DropTable(_ interface{}, _ *interface{}) interface {
|
||||
Error() string
|
||||
} {
|
||||
func (_ DB) DropTable(_ interface{}, _ interface{}) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ DB) Exec(_ interface{}, _ ...interface{}) (interface{}, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ DB) Exec(_ interface{}, _ ...interface{}) (interface{}, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ DB) ExecContext(_ context.Context, _ interface{}, _ ...interface{}) (interface{}, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ DB) ExecContext(_ context.Context, _ interface{}, _ ...interface{}) (interface{}, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ DB) ExecOne(_ interface{}, _ ...interface{}) (interface{}, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ DB) ExecOne(_ interface{}, _ ...interface{}) (interface{}, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ DB) ExecOneContext(_ context.Context, _ interface{}, _ ...interface{}) (interface{}, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ DB) ExecOneContext(_ context.Context, _ interface{}, _ ...interface{}) (interface{}, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ DB) ForceDelete(_ interface{}) interface {
|
||||
Error() string
|
||||
} {
|
||||
func (_ DB) ForceDelete(_ interface{}) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ DB) FormatQuery(_ []uint8, _ string, _ ...interface{}) []uint8 {
|
||||
func (_ DB) FormatQuery(_ []byte, _ string, _ ...interface{}) []byte {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ DB) Insert(_ ...interface{}) interface {
|
||||
Error() string
|
||||
} {
|
||||
func (_ DB) Insert(_ ...interface{}) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ DB) Model(_ ...interface{}) *interface{} {
|
||||
func (_ DB) Model(_ ...interface{}) interface{} {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ DB) ModelContext(_ context.Context, _ ...interface{}) *interface{} {
|
||||
func (_ DB) ModelContext(_ context.Context, _ ...interface{}) interface{} {
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -309,53 +231,35 @@ func (_ DB) PoolStats() *PoolStats {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ DB) Prepare(_ string) (*Stmt, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ DB) Prepare(_ string) (*Stmt, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ DB) Query(_ interface{}, _ interface{}, _ ...interface{}) (interface{}, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ DB) Query(_ interface{}, _ interface{}, _ ...interface{}) (interface{}, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ DB) QueryContext(_ context.Context, _ interface{}, _ interface{}, _ ...interface{}) (interface{}, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ DB) QueryContext(_ context.Context, _ interface{}, _ interface{}, _ ...interface{}) (interface{}, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ DB) QueryOne(_ interface{}, _ interface{}, _ ...interface{}) (interface{}, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ DB) QueryOne(_ interface{}, _ interface{}, _ ...interface{}) (interface{}, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ DB) QueryOneContext(_ context.Context, _ interface{}, _ interface{}, _ ...interface{}) (interface{}, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ DB) QueryOneContext(_ context.Context, _ interface{}, _ interface{}, _ ...interface{}) (interface{}, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ DB) RunInTransaction(_ func(*Tx) interface {
|
||||
Error() string
|
||||
}) interface {
|
||||
Error() string
|
||||
} {
|
||||
func (_ DB) RunInTransaction(_ func(*Tx) error) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ DB) Select(_ interface{}) interface {
|
||||
Error() string
|
||||
} {
|
||||
func (_ DB) Select(_ interface{}) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ DB) Update(_ interface{}) interface {
|
||||
Error() string
|
||||
} {
|
||||
func (_ DB) Update(_ interface{}) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -401,27 +305,19 @@ func (_ *Listener) ChannelSize(_ int) <-chan *Notification {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ *Listener) Close() interface {
|
||||
Error() string
|
||||
} {
|
||||
func (_ *Listener) Close() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ *Listener) Listen(_ ...string) interface {
|
||||
Error() string
|
||||
} {
|
||||
func (_ *Listener) Listen(_ ...string) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ *Listener) Receive() (string, string, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ *Listener) Receive() (string, string, error) {
|
||||
return "", "", nil
|
||||
}
|
||||
|
||||
func (_ *Listener) ReceiveTimeout(_ time.Duration) (string, string, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ *Listener) ReceiveTimeout(_ time.Duration) (string, string, error) {
|
||||
return "", "", nil
|
||||
}
|
||||
|
||||
@@ -435,14 +331,10 @@ type Notification struct {
|
||||
}
|
||||
|
||||
type Options struct {
|
||||
Network string
|
||||
Addr string
|
||||
Dialer func(string, string) (net.Conn, interface {
|
||||
Error() string
|
||||
})
|
||||
OnConnect func(*Conn) interface {
|
||||
Error() string
|
||||
}
|
||||
Network string
|
||||
Addr string
|
||||
Dialer func(string, string) (net.Conn, error)
|
||||
OnConnect func(*Conn) error
|
||||
User string
|
||||
Password string
|
||||
Database string
|
||||
@@ -483,21 +375,15 @@ type QueryEvent struct {
|
||||
Params []interface{}
|
||||
Attempt int
|
||||
Result interface{}
|
||||
Error interface {
|
||||
Error() string
|
||||
}
|
||||
Data map[interface{}]interface{}
|
||||
Error error
|
||||
Data map[interface{}]interface{}
|
||||
}
|
||||
|
||||
func (_ *QueryEvent) FormattedQuery() (string, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ *QueryEvent) FormattedQuery() (string, error) {
|
||||
return "", nil
|
||||
}
|
||||
|
||||
func (_ *QueryEvent) UnformattedQuery() (string, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ *QueryEvent) UnformattedQuery() (string, error) {
|
||||
return "", nil
|
||||
}
|
||||
|
||||
@@ -508,71 +394,49 @@ type QueryHook interface {
|
||||
|
||||
type Stmt struct{}
|
||||
|
||||
func (_ *Stmt) Close() interface {
|
||||
Error() string
|
||||
} {
|
||||
func (_ *Stmt) Close() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ *Stmt) Exec(_ ...interface{}) (interface{}, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ *Stmt) Exec(_ ...interface{}) (interface{}, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ *Stmt) ExecContext(_ context.Context, _ ...interface{}) (interface{}, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ *Stmt) ExecContext(_ context.Context, _ ...interface{}) (interface{}, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ *Stmt) ExecOne(_ ...interface{}) (interface{}, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ *Stmt) ExecOne(_ ...interface{}) (interface{}, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ *Stmt) ExecOneContext(_ context.Context, _ ...interface{}) (interface{}, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ *Stmt) ExecOneContext(_ context.Context, _ ...interface{}) (interface{}, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ *Stmt) Query(_ interface{}, _ ...interface{}) (interface{}, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ *Stmt) Query(_ interface{}, _ ...interface{}) (interface{}, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ *Stmt) QueryContext(_ context.Context, _ interface{}, _ ...interface{}) (interface{}, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ *Stmt) QueryContext(_ context.Context, _ interface{}, _ ...interface{}) (interface{}, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ *Stmt) QueryOne(_ interface{}, _ ...interface{}) (interface{}, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ *Stmt) QueryOne(_ interface{}, _ ...interface{}) (interface{}, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ *Stmt) QueryOneContext(_ context.Context, _ interface{}, _ ...interface{}) (interface{}, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ *Stmt) QueryOneContext(_ context.Context, _ interface{}, _ ...interface{}) (interface{}, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
type Tx struct{}
|
||||
|
||||
func (_ *Tx) Begin() (*Tx, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ *Tx) Begin() (*Tx, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ *Tx) Commit() interface {
|
||||
Error() string
|
||||
} {
|
||||
func (_ *Tx) Commit() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -580,131 +444,91 @@ func (_ *Tx) Context() context.Context {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ *Tx) CopyFrom(_ io.Reader, _ interface{}, _ ...interface{}) (interface{}, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ *Tx) CopyFrom(_ io.Reader, _ interface{}, _ ...interface{}) (interface{}, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ *Tx) CopyTo(_ io.Writer, _ interface{}, _ ...interface{}) (interface{}, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ *Tx) CopyTo(_ io.Writer, _ interface{}, _ ...interface{}) (interface{}, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ *Tx) CreateTable(_ interface{}, _ *interface{}) interface {
|
||||
Error() string
|
||||
} {
|
||||
func (_ *Tx) CreateTable(_ interface{}, _ interface{}) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ *Tx) Delete(_ interface{}) interface {
|
||||
Error() string
|
||||
} {
|
||||
func (_ *Tx) Delete(_ interface{}) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ *Tx) DropTable(_ interface{}, _ *interface{}) interface {
|
||||
Error() string
|
||||
} {
|
||||
func (_ *Tx) DropTable(_ interface{}, _ interface{}) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ *Tx) Exec(_ interface{}, _ ...interface{}) (interface{}, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ *Tx) Exec(_ interface{}, _ ...interface{}) (interface{}, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ *Tx) ExecContext(_ context.Context, _ interface{}, _ ...interface{}) (interface{}, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ *Tx) ExecContext(_ context.Context, _ interface{}, _ ...interface{}) (interface{}, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ *Tx) ExecOne(_ interface{}, _ ...interface{}) (interface{}, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ *Tx) ExecOne(_ interface{}, _ ...interface{}) (interface{}, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ *Tx) ExecOneContext(_ context.Context, _ interface{}, _ ...interface{}) (interface{}, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ *Tx) ExecOneContext(_ context.Context, _ interface{}, _ ...interface{}) (interface{}, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ *Tx) ForceDelete(_ interface{}) interface {
|
||||
Error() string
|
||||
} {
|
||||
func (_ *Tx) ForceDelete(_ interface{}) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ *Tx) FormatQuery(_ []uint8, _ string, _ ...interface{}) []uint8 {
|
||||
func (_ *Tx) FormatQuery(_ []byte, _ string, _ ...interface{}) []byte {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ *Tx) Insert(_ ...interface{}) interface {
|
||||
Error() string
|
||||
} {
|
||||
func (_ *Tx) Insert(_ ...interface{}) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ *Tx) Model(_ ...interface{}) *interface{} {
|
||||
func (_ *Tx) Model(_ ...interface{}) interface{} {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ *Tx) ModelContext(_ context.Context, _ ...interface{}) *interface{} {
|
||||
func (_ *Tx) ModelContext(_ context.Context, _ ...interface{}) interface{} {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ *Tx) Prepare(_ string) (*Stmt, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ *Tx) Prepare(_ string) (*Stmt, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ *Tx) Query(_ interface{}, _ interface{}, _ ...interface{}) (interface{}, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ *Tx) Query(_ interface{}, _ interface{}, _ ...interface{}) (interface{}, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ *Tx) QueryContext(_ context.Context, _ interface{}, _ interface{}, _ ...interface{}) (interface{}, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ *Tx) QueryContext(_ context.Context, _ interface{}, _ interface{}, _ ...interface{}) (interface{}, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ *Tx) QueryOne(_ interface{}, _ interface{}, _ ...interface{}) (interface{}, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ *Tx) QueryOne(_ interface{}, _ interface{}, _ ...interface{}) (interface{}, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ *Tx) QueryOneContext(_ context.Context, _ interface{}, _ interface{}, _ ...interface{}) (interface{}, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ *Tx) QueryOneContext(_ context.Context, _ interface{}, _ interface{}, _ ...interface{}) (interface{}, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ *Tx) Rollback() interface {
|
||||
Error() string
|
||||
} {
|
||||
func (_ *Tx) Rollback() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ *Tx) RunInTransaction(_ func(*Tx) interface {
|
||||
Error() string
|
||||
}) interface {
|
||||
Error() string
|
||||
} {
|
||||
func (_ *Tx) RunInTransaction(_ func(*Tx) error) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ *Tx) Select(_ interface{}) interface {
|
||||
Error() string
|
||||
} {
|
||||
func (_ *Tx) Select(_ interface{}) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -712,8 +536,6 @@ func (_ *Tx) Stmt(_ *Stmt) *Stmt {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ *Tx) Update(_ interface{}) interface {
|
||||
Error() string
|
||||
} {
|
||||
func (_ *Tx) Update(_ interface{}) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
396
ql/test/library-tests/semmle/go/frameworks/SQL/vendor/github.com/go-pg/pg/v9/stub.go
generated
vendored
396
ql/test/library-tests/semmle/go/frameworks/SQL/vendor/github.com/go-pg/pg/v9/stub.go
generated
vendored
@@ -19,87 +19,59 @@ type Conn struct{}
|
||||
|
||||
func (_ Conn) AddQueryHook(_ QueryHook) {}
|
||||
|
||||
func (_ Conn) Begin() (*Tx, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ Conn) Begin() (*Tx, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ Conn) Close() interface {
|
||||
Error() string
|
||||
} {
|
||||
func (_ Conn) Close() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ Conn) CopyFrom(_ io.Reader, _ interface{}, _ ...interface{}) (interface{}, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ Conn) CopyFrom(_ io.Reader, _ interface{}, _ ...interface{}) (interface{}, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ Conn) CopyTo(_ io.Writer, _ interface{}, _ ...interface{}) (interface{}, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ Conn) CopyTo(_ io.Writer, _ interface{}, _ ...interface{}) (interface{}, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ Conn) CreateComposite(_ interface{}, _ *interface{}) interface {
|
||||
Error() string
|
||||
} {
|
||||
func (_ Conn) CreateComposite(_ interface{}, _ interface{}) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ Conn) CreateTable(_ interface{}, _ *interface{}) interface {
|
||||
Error() string
|
||||
} {
|
||||
func (_ Conn) CreateTable(_ interface{}, _ interface{}) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ Conn) Delete(_ interface{}) interface {
|
||||
Error() string
|
||||
} {
|
||||
func (_ Conn) Delete(_ interface{}) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ Conn) DropComposite(_ interface{}, _ *interface{}) interface {
|
||||
Error() string
|
||||
} {
|
||||
func (_ Conn) DropComposite(_ interface{}, _ interface{}) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ Conn) DropTable(_ interface{}, _ *interface{}) interface {
|
||||
Error() string
|
||||
} {
|
||||
func (_ Conn) DropTable(_ interface{}, _ interface{}) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ Conn) Exec(_ interface{}, _ ...interface{}) (interface{}, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ Conn) Exec(_ interface{}, _ ...interface{}) (interface{}, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ Conn) ExecContext(_ context.Context, _ interface{}, _ ...interface{}) (interface{}, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ Conn) ExecContext(_ context.Context, _ interface{}, _ ...interface{}) (interface{}, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ Conn) ExecOne(_ interface{}, _ ...interface{}) (interface{}, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ Conn) ExecOne(_ interface{}, _ ...interface{}) (interface{}, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ Conn) ExecOneContext(_ context.Context, _ interface{}, _ ...interface{}) (interface{}, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ Conn) ExecOneContext(_ context.Context, _ interface{}, _ ...interface{}) (interface{}, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ Conn) ForceDelete(_ interface{}) interface {
|
||||
Error() string
|
||||
} {
|
||||
func (_ Conn) ForceDelete(_ interface{}) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -107,17 +79,15 @@ func (_ Conn) Formatter() interface{} {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ Conn) Insert(_ ...interface{}) interface {
|
||||
Error() string
|
||||
} {
|
||||
func (_ Conn) Insert(_ ...interface{}) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ Conn) Model(_ ...interface{}) *interface{} {
|
||||
func (_ Conn) Model(_ ...interface{}) interface{} {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ Conn) ModelContext(_ context.Context, _ ...interface{}) *interface{} {
|
||||
func (_ Conn) ModelContext(_ context.Context, _ ...interface{}) interface{} {
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -129,53 +99,35 @@ func (_ Conn) PoolStats() *PoolStats {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ Conn) Prepare(_ string) (*Stmt, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ Conn) Prepare(_ string) (*Stmt, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ Conn) Query(_ interface{}, _ interface{}, _ ...interface{}) (interface{}, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ Conn) Query(_ interface{}, _ interface{}, _ ...interface{}) (interface{}, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ Conn) QueryContext(_ context.Context, _ interface{}, _ interface{}, _ ...interface{}) (interface{}, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ Conn) QueryContext(_ context.Context, _ interface{}, _ interface{}, _ ...interface{}) (interface{}, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ Conn) QueryOne(_ interface{}, _ interface{}, _ ...interface{}) (interface{}, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ Conn) QueryOne(_ interface{}, _ interface{}, _ ...interface{}) (interface{}, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ Conn) QueryOneContext(_ context.Context, _ interface{}, _ interface{}, _ ...interface{}) (interface{}, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ Conn) QueryOneContext(_ context.Context, _ interface{}, _ interface{}, _ ...interface{}) (interface{}, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ Conn) RunInTransaction(_ func(*Tx) interface {
|
||||
Error() string
|
||||
}) interface {
|
||||
Error() string
|
||||
} {
|
||||
func (_ Conn) RunInTransaction(_ func(*Tx) error) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ Conn) Select(_ interface{}) interface {
|
||||
Error() string
|
||||
} {
|
||||
func (_ Conn) Select(_ interface{}) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ Conn) Update(_ interface{}) interface {
|
||||
Error() string
|
||||
} {
|
||||
func (_ Conn) Update(_ interface{}) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -199,87 +151,59 @@ type DB struct{}
|
||||
|
||||
func (_ DB) AddQueryHook(_ QueryHook) {}
|
||||
|
||||
func (_ DB) Begin() (*Tx, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ DB) Begin() (*Tx, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ DB) Close() interface {
|
||||
Error() string
|
||||
} {
|
||||
func (_ DB) Close() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ DB) CopyFrom(_ io.Reader, _ interface{}, _ ...interface{}) (interface{}, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ DB) CopyFrom(_ io.Reader, _ interface{}, _ ...interface{}) (interface{}, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ DB) CopyTo(_ io.Writer, _ interface{}, _ ...interface{}) (interface{}, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ DB) CopyTo(_ io.Writer, _ interface{}, _ ...interface{}) (interface{}, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ DB) CreateComposite(_ interface{}, _ *interface{}) interface {
|
||||
Error() string
|
||||
} {
|
||||
func (_ DB) CreateComposite(_ interface{}, _ interface{}) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ DB) CreateTable(_ interface{}, _ *interface{}) interface {
|
||||
Error() string
|
||||
} {
|
||||
func (_ DB) CreateTable(_ interface{}, _ interface{}) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ DB) Delete(_ interface{}) interface {
|
||||
Error() string
|
||||
} {
|
||||
func (_ DB) Delete(_ interface{}) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ DB) DropComposite(_ interface{}, _ *interface{}) interface {
|
||||
Error() string
|
||||
} {
|
||||
func (_ DB) DropComposite(_ interface{}, _ interface{}) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ DB) DropTable(_ interface{}, _ *interface{}) interface {
|
||||
Error() string
|
||||
} {
|
||||
func (_ DB) DropTable(_ interface{}, _ interface{}) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ DB) Exec(_ interface{}, _ ...interface{}) (interface{}, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ DB) Exec(_ interface{}, _ ...interface{}) (interface{}, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ DB) ExecContext(_ context.Context, _ interface{}, _ ...interface{}) (interface{}, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ DB) ExecContext(_ context.Context, _ interface{}, _ ...interface{}) (interface{}, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ DB) ExecOne(_ interface{}, _ ...interface{}) (interface{}, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ DB) ExecOne(_ interface{}, _ ...interface{}) (interface{}, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ DB) ExecOneContext(_ context.Context, _ interface{}, _ ...interface{}) (interface{}, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ DB) ExecOneContext(_ context.Context, _ interface{}, _ ...interface{}) (interface{}, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ DB) ForceDelete(_ interface{}) interface {
|
||||
Error() string
|
||||
} {
|
||||
func (_ DB) ForceDelete(_ interface{}) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -287,17 +211,15 @@ func (_ DB) Formatter() interface{} {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ DB) Insert(_ ...interface{}) interface {
|
||||
Error() string
|
||||
} {
|
||||
func (_ DB) Insert(_ ...interface{}) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ DB) Model(_ ...interface{}) *interface{} {
|
||||
func (_ DB) Model(_ ...interface{}) interface{} {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ DB) ModelContext(_ context.Context, _ ...interface{}) *interface{} {
|
||||
func (_ DB) ModelContext(_ context.Context, _ ...interface{}) interface{} {
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -309,53 +231,35 @@ func (_ DB) PoolStats() *PoolStats {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ DB) Prepare(_ string) (*Stmt, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ DB) Prepare(_ string) (*Stmt, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ DB) Query(_ interface{}, _ interface{}, _ ...interface{}) (interface{}, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ DB) Query(_ interface{}, _ interface{}, _ ...interface{}) (interface{}, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ DB) QueryContext(_ context.Context, _ interface{}, _ interface{}, _ ...interface{}) (interface{}, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ DB) QueryContext(_ context.Context, _ interface{}, _ interface{}, _ ...interface{}) (interface{}, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ DB) QueryOne(_ interface{}, _ interface{}, _ ...interface{}) (interface{}, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ DB) QueryOne(_ interface{}, _ interface{}, _ ...interface{}) (interface{}, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ DB) QueryOneContext(_ context.Context, _ interface{}, _ interface{}, _ ...interface{}) (interface{}, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ DB) QueryOneContext(_ context.Context, _ interface{}, _ interface{}, _ ...interface{}) (interface{}, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ DB) RunInTransaction(_ func(*Tx) interface {
|
||||
Error() string
|
||||
}) interface {
|
||||
Error() string
|
||||
} {
|
||||
func (_ DB) RunInTransaction(_ func(*Tx) error) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ DB) Select(_ interface{}) interface {
|
||||
Error() string
|
||||
} {
|
||||
func (_ DB) Select(_ interface{}) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ DB) Update(_ interface{}) interface {
|
||||
Error() string
|
||||
} {
|
||||
func (_ DB) Update(_ interface{}) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -401,27 +305,19 @@ func (_ *Listener) ChannelSize(_ int) <-chan *Notification {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ *Listener) Close() interface {
|
||||
Error() string
|
||||
} {
|
||||
func (_ *Listener) Close() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ *Listener) Listen(_ ...string) interface {
|
||||
Error() string
|
||||
} {
|
||||
func (_ *Listener) Listen(_ ...string) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ *Listener) Receive() (string, string, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ *Listener) Receive() (string, string, error) {
|
||||
return "", "", nil
|
||||
}
|
||||
|
||||
func (_ *Listener) ReceiveTimeout(_ time.Duration) (string, string, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ *Listener) ReceiveTimeout(_ time.Duration) (string, string, error) {
|
||||
return "", "", nil
|
||||
}
|
||||
|
||||
@@ -435,22 +331,18 @@ type Notification struct {
|
||||
}
|
||||
|
||||
type Options struct {
|
||||
Network string
|
||||
Addr string
|
||||
Dialer func(context.Context, string, string) (net.Conn, interface {
|
||||
Error() string
|
||||
})
|
||||
User string
|
||||
Password string
|
||||
Database string
|
||||
ApplicationName string
|
||||
TLSConfig *tls.Config
|
||||
DialTimeout time.Duration
|
||||
ReadTimeout time.Duration
|
||||
WriteTimeout time.Duration
|
||||
OnConnect func(*Conn) interface {
|
||||
Error() string
|
||||
}
|
||||
Network string
|
||||
Addr string
|
||||
Dialer func(context.Context, string, string) (net.Conn, error)
|
||||
User string
|
||||
Password string
|
||||
Database string
|
||||
ApplicationName string
|
||||
TLSConfig *tls.Config
|
||||
DialTimeout time.Duration
|
||||
ReadTimeout time.Duration
|
||||
WriteTimeout time.Duration
|
||||
OnConnect func(*Conn) error
|
||||
MaxRetries int
|
||||
RetryStatementTimeout bool
|
||||
MinRetryBackoff time.Duration
|
||||
@@ -483,106 +375,72 @@ type QueryEvent struct {
|
||||
Query interface{}
|
||||
Params []interface{}
|
||||
Result interface{}
|
||||
Err interface {
|
||||
Error() string
|
||||
}
|
||||
Stash map[interface{}]interface{}
|
||||
Err error
|
||||
Stash map[interface{}]interface{}
|
||||
}
|
||||
|
||||
func (_ *QueryEvent) FormattedQuery() (string, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ *QueryEvent) FormattedQuery() (string, error) {
|
||||
return "", nil
|
||||
}
|
||||
|
||||
func (_ *QueryEvent) UnformattedQuery() (string, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ *QueryEvent) UnformattedQuery() (string, error) {
|
||||
return "", nil
|
||||
}
|
||||
|
||||
type QueryHook interface {
|
||||
AfterQuery(_ context.Context, _ *QueryEvent) interface {
|
||||
Error() string
|
||||
}
|
||||
BeforeQuery(_ context.Context, _ *QueryEvent) (context.Context, interface {
|
||||
Error() string
|
||||
})
|
||||
AfterQuery(_ context.Context, _ *QueryEvent) error
|
||||
BeforeQuery(_ context.Context, _ *QueryEvent) (context.Context, error)
|
||||
}
|
||||
|
||||
type Stmt struct{}
|
||||
|
||||
func (_ *Stmt) Close() interface {
|
||||
Error() string
|
||||
} {
|
||||
func (_ *Stmt) Close() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ *Stmt) Exec(_ ...interface{}) (interface{}, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ *Stmt) Exec(_ ...interface{}) (interface{}, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ *Stmt) ExecContext(_ context.Context, _ ...interface{}) (interface{}, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ *Stmt) ExecContext(_ context.Context, _ ...interface{}) (interface{}, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ *Stmt) ExecOne(_ ...interface{}) (interface{}, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ *Stmt) ExecOne(_ ...interface{}) (interface{}, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ *Stmt) ExecOneContext(_ context.Context, _ ...interface{}) (interface{}, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ *Stmt) ExecOneContext(_ context.Context, _ ...interface{}) (interface{}, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ *Stmt) Query(_ interface{}, _ ...interface{}) (interface{}, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ *Stmt) Query(_ interface{}, _ ...interface{}) (interface{}, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ *Stmt) QueryContext(_ context.Context, _ interface{}, _ ...interface{}) (interface{}, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ *Stmt) QueryContext(_ context.Context, _ interface{}, _ ...interface{}) (interface{}, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ *Stmt) QueryOne(_ interface{}, _ ...interface{}) (interface{}, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ *Stmt) QueryOne(_ interface{}, _ ...interface{}) (interface{}, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ *Stmt) QueryOneContext(_ context.Context, _ interface{}, _ ...interface{}) (interface{}, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ *Stmt) QueryOneContext(_ context.Context, _ interface{}, _ ...interface{}) (interface{}, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
type Tx struct{}
|
||||
|
||||
func (_ *Tx) Begin() (*Tx, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ *Tx) Begin() (*Tx, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ *Tx) Close() interface {
|
||||
Error() string
|
||||
} {
|
||||
func (_ *Tx) Close() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ *Tx) Commit() interface {
|
||||
Error() string
|
||||
} {
|
||||
func (_ *Tx) Commit() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -590,63 +448,43 @@ func (_ *Tx) Context() context.Context {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ *Tx) CopyFrom(_ io.Reader, _ interface{}, _ ...interface{}) (interface{}, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ *Tx) CopyFrom(_ io.Reader, _ interface{}, _ ...interface{}) (interface{}, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ *Tx) CopyTo(_ io.Writer, _ interface{}, _ ...interface{}) (interface{}, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ *Tx) CopyTo(_ io.Writer, _ interface{}, _ ...interface{}) (interface{}, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ *Tx) CreateTable(_ interface{}, _ *interface{}) interface {
|
||||
Error() string
|
||||
} {
|
||||
func (_ *Tx) CreateTable(_ interface{}, _ interface{}) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ *Tx) Delete(_ interface{}) interface {
|
||||
Error() string
|
||||
} {
|
||||
func (_ *Tx) Delete(_ interface{}) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ *Tx) DropTable(_ interface{}, _ *interface{}) interface {
|
||||
Error() string
|
||||
} {
|
||||
func (_ *Tx) DropTable(_ interface{}, _ interface{}) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ *Tx) Exec(_ interface{}, _ ...interface{}) (interface{}, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ *Tx) Exec(_ interface{}, _ ...interface{}) (interface{}, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ *Tx) ExecContext(_ context.Context, _ interface{}, _ ...interface{}) (interface{}, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ *Tx) ExecContext(_ context.Context, _ interface{}, _ ...interface{}) (interface{}, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ *Tx) ExecOne(_ interface{}, _ ...interface{}) (interface{}, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ *Tx) ExecOne(_ interface{}, _ ...interface{}) (interface{}, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ *Tx) ExecOneContext(_ context.Context, _ interface{}, _ ...interface{}) (interface{}, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ *Tx) ExecOneContext(_ context.Context, _ interface{}, _ ...interface{}) (interface{}, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ *Tx) ForceDelete(_ interface{}) interface {
|
||||
Error() string
|
||||
} {
|
||||
func (_ *Tx) ForceDelete(_ interface{}) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -654,67 +492,47 @@ func (_ *Tx) Formatter() interface{} {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ *Tx) Insert(_ ...interface{}) interface {
|
||||
Error() string
|
||||
} {
|
||||
func (_ *Tx) Insert(_ ...interface{}) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ *Tx) Model(_ ...interface{}) *interface{} {
|
||||
func (_ *Tx) Model(_ ...interface{}) interface{} {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ *Tx) ModelContext(_ context.Context, _ ...interface{}) *interface{} {
|
||||
func (_ *Tx) ModelContext(_ context.Context, _ ...interface{}) interface{} {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ *Tx) Prepare(_ string) (*Stmt, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ *Tx) Prepare(_ string) (*Stmt, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ *Tx) Query(_ interface{}, _ interface{}, _ ...interface{}) (interface{}, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ *Tx) Query(_ interface{}, _ interface{}, _ ...interface{}) (interface{}, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ *Tx) QueryContext(_ context.Context, _ interface{}, _ interface{}, _ ...interface{}) (interface{}, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ *Tx) QueryContext(_ context.Context, _ interface{}, _ interface{}, _ ...interface{}) (interface{}, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ *Tx) QueryOne(_ interface{}, _ interface{}, _ ...interface{}) (interface{}, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ *Tx) QueryOne(_ interface{}, _ interface{}, _ ...interface{}) (interface{}, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ *Tx) QueryOneContext(_ context.Context, _ interface{}, _ interface{}, _ ...interface{}) (interface{}, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ *Tx) QueryOneContext(_ context.Context, _ interface{}, _ interface{}, _ ...interface{}) (interface{}, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ *Tx) Rollback() interface {
|
||||
Error() string
|
||||
} {
|
||||
func (_ *Tx) Rollback() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ *Tx) RunInTransaction(_ func(*Tx) interface {
|
||||
Error() string
|
||||
}) interface {
|
||||
Error() string
|
||||
} {
|
||||
func (_ *Tx) RunInTransaction(_ func(*Tx) error) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ *Tx) Select(_ interface{}) interface {
|
||||
Error() string
|
||||
} {
|
||||
func (_ *Tx) Select(_ interface{}) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -722,8 +540,6 @@ func (_ *Tx) Stmt(_ *Stmt) *Stmt {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ *Tx) Update(_ interface{}) interface {
|
||||
Error() string
|
||||
} {
|
||||
func (_ *Tx) Update(_ interface{}) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -4,6 +4,5 @@ go 1.14
|
||||
|
||||
require (
|
||||
github.com/codeskyblue/go-sh v0.0.0-20190412065543-76bd3d59ff27
|
||||
github.com/github/depstubber v0.0.0-20200414025517-59c2db8e9405 // indirect
|
||||
golang.org/x/crypto v0.0.0-20200323165209-0ec3e9974c59
|
||||
)
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
# github.com/codeskyblue/go-sh v0.0.0-20190412065543-76bd3d59ff27
|
||||
## explicit
|
||||
github.com/codeskyblue/go-sh
|
||||
# github.com/github/depstubber v0.0.0-20200414025517-59c2db8e9405
|
||||
## explicit
|
||||
github.com/github/depstubber
|
||||
# golang.org/x/crypto v0.0.0-20200323165209-0ec3e9974c59
|
||||
## explicit
|
||||
golang.org/x/crypto
|
||||
|
||||
@@ -63,11 +63,11 @@ type ClientOptions struct {
|
||||
MaxConnIdleTime *time.Duration
|
||||
MaxPoolSize *uint64
|
||||
MinPoolSize *uint64
|
||||
PoolMonitor *interface{}
|
||||
Monitor *interface{}
|
||||
ReadConcern *interface{}
|
||||
ReadPreference *interface{}
|
||||
Registry *interface{}
|
||||
PoolMonitor interface{}
|
||||
Monitor interface{}
|
||||
ReadConcern interface{}
|
||||
ReadPreference interface{}
|
||||
Registry interface{}
|
||||
ReplicaSet *string
|
||||
RetryWrites *bool
|
||||
RetryReads *bool
|
||||
@@ -75,7 +75,7 @@ type ClientOptions struct {
|
||||
Direct *bool
|
||||
SocketTimeout *time.Duration
|
||||
TLSConfig *tls.Config
|
||||
WriteConcern *interface{}
|
||||
WriteConcern interface{}
|
||||
ZlibLevel *int
|
||||
ZstdLevel *int
|
||||
AutoEncryptionOptions *AutoEncryptionOptions
|
||||
@@ -143,23 +143,23 @@ func (_ *ClientOptions) SetMinPoolSize(_ uint64) *ClientOptions {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ *ClientOptions) SetMonitor(_ *interface{}) *ClientOptions {
|
||||
func (_ *ClientOptions) SetMonitor(_ interface{}) *ClientOptions {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ *ClientOptions) SetPoolMonitor(_ *interface{}) *ClientOptions {
|
||||
func (_ *ClientOptions) SetPoolMonitor(_ interface{}) *ClientOptions {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ *ClientOptions) SetReadConcern(_ *interface{}) *ClientOptions {
|
||||
func (_ *ClientOptions) SetReadConcern(_ interface{}) *ClientOptions {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ *ClientOptions) SetReadPreference(_ *interface{}) *ClientOptions {
|
||||
func (_ *ClientOptions) SetReadPreference(_ interface{}) *ClientOptions {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ *ClientOptions) SetRegistry(_ *interface{}) *ClientOptions {
|
||||
func (_ *ClientOptions) SetRegistry(_ interface{}) *ClientOptions {
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -187,7 +187,7 @@ func (_ *ClientOptions) SetTLSConfig(_ *tls.Config) *ClientOptions {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ *ClientOptions) SetWriteConcern(_ *interface{}) *ClientOptions {
|
||||
func (_ *ClientOptions) SetWriteConcern(_ interface{}) *ClientOptions {
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
100
ql/test/query-tests/Security/CWE-089/vendor/go.mongodb.org/mongo-driver/mongo/stub.go
generated
vendored
100
ql/test/query-tests/Security/CWE-089/vendor/go.mongodb.org/mongo-driver/mongo/stub.go
generated
vendored
@@ -59,7 +59,7 @@ func (_ *Client) Connect(_ context.Context) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ *Client) Database(_ string, _ ...*interface{}) *Database {
|
||||
func (_ *Client) Database(_ string, _ ...interface{}) *Database {
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -67,11 +67,11 @@ func (_ *Client) Disconnect(_ context.Context) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ *Client) ListDatabaseNames(_ context.Context, _ interface{}, _ ...*interface{}) ([]string, error) {
|
||||
func (_ *Client) ListDatabaseNames(_ context.Context, _ interface{}, _ ...interface{}) ([]string, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ *Client) ListDatabases(_ context.Context, _ interface{}, _ ...*interface{}) (ListDatabasesResult, error) {
|
||||
func (_ *Client) ListDatabases(_ context.Context, _ interface{}, _ ...interface{}) (ListDatabasesResult, error) {
|
||||
return ListDatabasesResult{}, nil
|
||||
}
|
||||
|
||||
@@ -79,11 +79,11 @@ func (_ *Client) NumberSessionsInProgress() int {
|
||||
return 0
|
||||
}
|
||||
|
||||
func (_ *Client) Ping(_ context.Context, _ *interface{}) error {
|
||||
func (_ *Client) Ping(_ context.Context, _ interface{}) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ *Client) StartSession(_ ...*interface{}) (Session, error) {
|
||||
func (_ *Client) StartSession(_ ...interface{}) (Session, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
@@ -91,29 +91,29 @@ func (_ *Client) UseSession(_ context.Context, _ func(SessionContext) error) err
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ *Client) UseSessionWithOptions(_ context.Context, _ *interface{}, _ func(SessionContext) error) error {
|
||||
func (_ *Client) UseSessionWithOptions(_ context.Context, _ interface{}, _ func(SessionContext) error) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ *Client) Watch(_ context.Context, _ interface{}, _ ...*interface{}) (*ChangeStream, error) {
|
||||
func (_ *Client) Watch(_ context.Context, _ interface{}, _ ...interface{}) (*ChangeStream, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
type Collection struct{}
|
||||
|
||||
func (_ *Collection) Aggregate(_ context.Context, _ interface{}, _ ...*interface{}) (*Cursor, error) {
|
||||
func (_ *Collection) Aggregate(_ context.Context, _ interface{}, _ ...interface{}) (*Cursor, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ *Collection) BulkWrite(_ context.Context, _ []WriteModel, _ ...*interface{}) (*BulkWriteResult, error) {
|
||||
func (_ *Collection) BulkWrite(_ context.Context, _ []WriteModel, _ ...interface{}) (*BulkWriteResult, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ *Collection) Clone(_ ...*interface{}) (*Collection, error) {
|
||||
func (_ *Collection) Clone(_ ...interface{}) (*Collection, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ *Collection) CountDocuments(_ context.Context, _ interface{}, _ ...*interface{}) (int64, error) {
|
||||
func (_ *Collection) CountDocuments(_ context.Context, _ interface{}, _ ...interface{}) (int64, error) {
|
||||
return 0, nil
|
||||
}
|
||||
|
||||
@@ -121,15 +121,15 @@ func (_ *Collection) Database() *Database {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ *Collection) DeleteMany(_ context.Context, _ interface{}, _ ...*interface{}) (*DeleteResult, error) {
|
||||
func (_ *Collection) DeleteMany(_ context.Context, _ interface{}, _ ...interface{}) (*DeleteResult, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ *Collection) DeleteOne(_ context.Context, _ interface{}, _ ...*interface{}) (*DeleteResult, error) {
|
||||
func (_ *Collection) DeleteOne(_ context.Context, _ interface{}, _ ...interface{}) (*DeleteResult, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ *Collection) Distinct(_ context.Context, _ string, _ interface{}, _ ...*interface{}) ([]interface{}, error) {
|
||||
func (_ *Collection) Distinct(_ context.Context, _ string, _ interface{}, _ ...interface{}) ([]interface{}, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
@@ -137,27 +137,27 @@ func (_ *Collection) Drop(_ context.Context) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ *Collection) EstimatedDocumentCount(_ context.Context, _ ...*interface{}) (int64, error) {
|
||||
func (_ *Collection) EstimatedDocumentCount(_ context.Context, _ ...interface{}) (int64, error) {
|
||||
return 0, nil
|
||||
}
|
||||
|
||||
func (_ *Collection) Find(_ context.Context, _ interface{}, _ ...*interface{}) (*Cursor, error) {
|
||||
func (_ *Collection) Find(_ context.Context, _ interface{}, _ ...interface{}) (*Cursor, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ *Collection) FindOne(_ context.Context, _ interface{}, _ ...*interface{}) *SingleResult {
|
||||
func (_ *Collection) FindOne(_ context.Context, _ interface{}, _ ...interface{}) *SingleResult {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ *Collection) FindOneAndDelete(_ context.Context, _ interface{}, _ ...*interface{}) *SingleResult {
|
||||
func (_ *Collection) FindOneAndDelete(_ context.Context, _ interface{}, _ ...interface{}) *SingleResult {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ *Collection) FindOneAndReplace(_ context.Context, _ interface{}, _ interface{}, _ ...*interface{}) *SingleResult {
|
||||
func (_ *Collection) FindOneAndReplace(_ context.Context, _ interface{}, _ interface{}, _ ...interface{}) *SingleResult {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ *Collection) FindOneAndUpdate(_ context.Context, _ interface{}, _ interface{}, _ ...*interface{}) *SingleResult {
|
||||
func (_ *Collection) FindOneAndUpdate(_ context.Context, _ interface{}, _ interface{}, _ ...interface{}) *SingleResult {
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -165,11 +165,11 @@ func (_ *Collection) Indexes() IndexView {
|
||||
return IndexView{}
|
||||
}
|
||||
|
||||
func (_ *Collection) InsertMany(_ context.Context, _ []interface{}, _ ...*interface{}) (*InsertManyResult, error) {
|
||||
func (_ *Collection) InsertMany(_ context.Context, _ []interface{}, _ ...interface{}) (*InsertManyResult, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ *Collection) InsertOne(_ context.Context, _ interface{}, _ ...*interface{}) (*InsertOneResult, error) {
|
||||
func (_ *Collection) InsertOne(_ context.Context, _ interface{}, _ ...interface{}) (*InsertOneResult, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
@@ -177,19 +177,19 @@ func (_ *Collection) Name() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
func (_ *Collection) ReplaceOne(_ context.Context, _ interface{}, _ interface{}, _ ...*interface{}) (*UpdateResult, error) {
|
||||
func (_ *Collection) ReplaceOne(_ context.Context, _ interface{}, _ interface{}, _ ...interface{}) (*UpdateResult, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ *Collection) UpdateMany(_ context.Context, _ interface{}, _ interface{}, _ ...*interface{}) (*UpdateResult, error) {
|
||||
func (_ *Collection) UpdateMany(_ context.Context, _ interface{}, _ interface{}, _ ...interface{}) (*UpdateResult, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ *Collection) UpdateOne(_ context.Context, _ interface{}, _ interface{}, _ ...*interface{}) (*UpdateResult, error) {
|
||||
func (_ *Collection) UpdateOne(_ context.Context, _ interface{}, _ interface{}, _ ...interface{}) (*UpdateResult, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ *Collection) Watch(_ context.Context, _ interface{}, _ ...*interface{}) (*ChangeStream, error) {
|
||||
func (_ *Collection) Watch(_ context.Context, _ interface{}, _ ...interface{}) (*ChangeStream, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
@@ -231,7 +231,7 @@ func (_ *Cursor) TryNext(_ context.Context) bool {
|
||||
|
||||
type Database struct{}
|
||||
|
||||
func (_ *Database) Aggregate(_ context.Context, _ interface{}, _ ...*interface{}) (*Cursor, error) {
|
||||
func (_ *Database) Aggregate(_ context.Context, _ interface{}, _ ...interface{}) (*Cursor, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
@@ -239,7 +239,7 @@ func (_ *Database) Client() *Client {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ *Database) Collection(_ string, _ ...*interface{}) *Collection {
|
||||
func (_ *Database) Collection(_ string, _ ...interface{}) *Collection {
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -247,11 +247,11 @@ func (_ *Database) Drop(_ context.Context) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ *Database) ListCollectionNames(_ context.Context, _ interface{}, _ ...*interface{}) ([]string, error) {
|
||||
func (_ *Database) ListCollectionNames(_ context.Context, _ interface{}, _ ...interface{}) ([]string, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ *Database) ListCollections(_ context.Context, _ interface{}, _ ...*interface{}) (*Cursor, error) {
|
||||
func (_ *Database) ListCollections(_ context.Context, _ interface{}, _ ...interface{}) (*Cursor, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
@@ -259,27 +259,27 @@ func (_ *Database) Name() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
func (_ *Database) ReadConcern() *interface{} {
|
||||
func (_ *Database) ReadConcern() interface{} {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ *Database) ReadPreference() *interface{} {
|
||||
func (_ *Database) ReadPreference() interface{} {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ *Database) RunCommand(_ context.Context, _ interface{}, _ ...*interface{}) *SingleResult {
|
||||
func (_ *Database) RunCommand(_ context.Context, _ interface{}, _ ...interface{}) *SingleResult {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (_ *Database) RunCommandCursor(_ context.Context, _ interface{}, _ ...*interface{}) (*Cursor, error) {
|
||||
func (_ *Database) RunCommandCursor(_ context.Context, _ interface{}, _ ...interface{}) (*Cursor, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ *Database) Watch(_ context.Context, _ interface{}, _ ...*interface{}) (*ChangeStream, error) {
|
||||
func (_ *Database) Watch(_ context.Context, _ interface{}, _ ...interface{}) (*ChangeStream, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ *Database) WriteConcern() *interface{} {
|
||||
func (_ *Database) WriteConcern() interface{} {
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -295,28 +295,28 @@ type DeleteResult struct {
|
||||
|
||||
type IndexModel struct {
|
||||
Keys interface{}
|
||||
Options *interface{}
|
||||
Options interface{}
|
||||
}
|
||||
|
||||
type IndexView struct{}
|
||||
|
||||
func (_ IndexView) CreateMany(_ context.Context, _ []IndexModel, _ ...*interface{}) ([]string, error) {
|
||||
func (_ IndexView) CreateMany(_ context.Context, _ []IndexModel, _ ...interface{}) ([]string, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ IndexView) CreateOne(_ context.Context, _ IndexModel, _ ...*interface{}) (string, error) {
|
||||
func (_ IndexView) CreateOne(_ context.Context, _ IndexModel, _ ...interface{}) (string, error) {
|
||||
return "", nil
|
||||
}
|
||||
|
||||
func (_ IndexView) DropAll(_ context.Context, _ ...*interface{}) (interface{}, error) {
|
||||
func (_ IndexView) DropAll(_ context.Context, _ ...interface{}) (interface{}, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ IndexView) DropOne(_ context.Context, _ string, _ ...*interface{}) (interface{}, error) {
|
||||
func (_ IndexView) DropOne(_ context.Context, _ string, _ ...interface{}) (interface{}, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ IndexView) List(_ context.Context, _ ...*interface{}) (*Cursor, error) {
|
||||
func (_ IndexView) List(_ context.Context, _ ...interface{}) (*Cursor, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
@@ -338,20 +338,20 @@ type Pipeline []interface{}
|
||||
type Session interface {
|
||||
AbortTransaction(_ context.Context) error
|
||||
AdvanceClusterTime(_ interface{}) error
|
||||
AdvanceOperationTime(_ *interface{}) error
|
||||
AdvanceOperationTime(_ interface{}) error
|
||||
Client() *Client
|
||||
ClusterTime() interface{}
|
||||
CommitTransaction(_ context.Context) error
|
||||
EndSession(_ context.Context)
|
||||
OperationTime() *interface{}
|
||||
StartTransaction(_ ...*interface{}) error
|
||||
WithTransaction(_ context.Context, _ func(SessionContext) (interface{}, error), _ ...*interface{}) (interface{}, error)
|
||||
OperationTime() interface{}
|
||||
StartTransaction(_ ...interface{}) error
|
||||
WithTransaction(_ context.Context, _ func(SessionContext) (interface{}, error), _ ...interface{}) (interface{}, error)
|
||||
}
|
||||
|
||||
type SessionContext interface {
|
||||
AbortTransaction(_ context.Context) error
|
||||
AdvanceClusterTime(_ interface{}) error
|
||||
AdvanceOperationTime(_ *interface{}) error
|
||||
AdvanceOperationTime(_ interface{}) error
|
||||
Client() *Client
|
||||
ClusterTime() interface{}
|
||||
CommitTransaction(_ context.Context) error
|
||||
@@ -359,10 +359,10 @@ type SessionContext interface {
|
||||
Done() <-chan struct{}
|
||||
EndSession(_ context.Context)
|
||||
Err() error
|
||||
OperationTime() *interface{}
|
||||
StartTransaction(_ ...*interface{}) error
|
||||
OperationTime() interface{}
|
||||
StartTransaction(_ ...interface{}) error
|
||||
Value(_ interface{}) interface{}
|
||||
WithTransaction(_ context.Context, _ func(SessionContext) (interface{}, error), _ ...*interface{}) (interface{}, error)
|
||||
WithTransaction(_ context.Context, _ func(SessionContext) (interface{}, error), _ ...interface{}) (interface{}, error)
|
||||
}
|
||||
|
||||
type SingleResult struct{}
|
||||
|
||||
@@ -3,7 +3,6 @@ module main
|
||||
go 1.14
|
||||
|
||||
require (
|
||||
github.com/github/depstubber v0.0.0-20200414023404-c355b630c381 // indirect
|
||||
github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b
|
||||
github.com/sirupsen/logrus v1.5.0
|
||||
)
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
# github.com/github/depstubber v0.0.0-20200414023404-c355b630c381
|
||||
## explicit
|
||||
github.com/github/depstubber
|
||||
# github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b
|
||||
## explicit
|
||||
github.com/golang/glog
|
||||
|
||||
@@ -8,13 +8,7 @@ require (
|
||||
github.com/antchfx/jsonquery v1.1.2
|
||||
github.com/antchfx/xmlquery v1.2.3
|
||||
github.com/antchfx/xpath v1.1.5
|
||||
github.com/github/depstubber v0.0.0-20200413231600-392d5a70208e // indirect
|
||||
github.com/go-xmlpath/xmlpath v0.0.0-20150820204837-860cbeca3ebc
|
||||
github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect
|
||||
github.com/jbowtie/gokogiri v0.0.0-20190301021639-37f655d3078f
|
||||
github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e // indirect
|
||||
github.com/santhosh-tekuri/xpathparser v1.0.0
|
||||
golang.org/x/net v0.0.0-20200226121028-0de0cce0169b // indirect
|
||||
gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f // indirect
|
||||
gopkg.in/xmlpath.v2 v2.0.0-20150820204837-860cbeca3ebc // indirect
|
||||
)
|
||||
|
||||
25
ql/test/query-tests/Security/CWE-643/vendor/github.com/ChrisTrenkamp/goxpath/stub.go
generated
vendored
25
ql/test/query-tests/Security/CWE-643/vendor/github.com/ChrisTrenkamp/goxpath/stub.go
generated
vendored
@@ -1,6 +1,7 @@
|
||||
// Code generated by depstubber. DO NOT EDIT.
|
||||
// This is a simple stub for github.com/ChrisTrenkamp/goxpath, strictly for use in testing.
|
||||
|
||||
// See the LICENSE file for information about the licensing of the original library.
|
||||
// Source: github.com/ChrisTrenkamp/goxpath (exports: Opts,FuncOpts,XPathExec; functions: Parse,MustParse,ParseExec)
|
||||
|
||||
// Package goxpath is a stub of github.com/ChrisTrenkamp/goxpath, generated by depstubber.
|
||||
@@ -22,41 +23,29 @@ type Opts struct {
|
||||
Vars map[string]interface{}
|
||||
}
|
||||
|
||||
func Parse(_ string) (XPathExec, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func Parse(_ string) (XPathExec, error) {
|
||||
return XPathExec{}, nil
|
||||
}
|
||||
|
||||
func ParseExec(_ string, _ interface{}, _ ...FuncOpts) (interface{}, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func ParseExec(_ string, _ interface{}, _ ...FuncOpts) (interface{}, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
type XPathExec struct{}
|
||||
|
||||
func (_ XPathExec) Exec(_ interface{}, _ ...FuncOpts) (interface{}, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ XPathExec) Exec(_ interface{}, _ ...FuncOpts) (interface{}, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ XPathExec) ExecBool(_ interface{}, _ ...FuncOpts) (bool, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ XPathExec) ExecBool(_ interface{}, _ ...FuncOpts) (bool, error) {
|
||||
return false, nil
|
||||
}
|
||||
|
||||
func (_ XPathExec) ExecNode(_ interface{}, _ ...FuncOpts) (interface{}, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ XPathExec) ExecNode(_ interface{}, _ ...FuncOpts) (interface{}, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (_ XPathExec) ExecNum(_ interface{}, _ ...FuncOpts) (float64, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func (_ XPathExec) ExecNum(_ interface{}, _ ...FuncOpts) (float64, error) {
|
||||
return 0, nil
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
// Code generated by depstubber. DO NOT EDIT.
|
||||
// This is a simple stub for github.com/ChrisTrenkamp/goxpath/tree, strictly for use in testing.
|
||||
|
||||
// See the LICENSE file for information about the licensing of the original library.
|
||||
// Source: github.com/ChrisTrenkamp/goxpath/tree (exports: Node,String; functions: )
|
||||
|
||||
// Package tree is a stub of github.com/ChrisTrenkamp/goxpath/tree, generated by depstubber.
|
||||
|
||||
13
ql/test/query-tests/Security/CWE-643/vendor/github.com/antchfx/htmlquery/stub.go
generated
vendored
13
ql/test/query-tests/Security/CWE-643/vendor/github.com/antchfx/htmlquery/stub.go
generated
vendored
@@ -1,6 +1,7 @@
|
||||
// Code generated by depstubber. DO NOT EDIT.
|
||||
// This is a simple stub for github.com/antchfx/htmlquery, strictly for use in testing.
|
||||
|
||||
// See the LICENSE file for information about the licensing of the original library.
|
||||
// Source: github.com/antchfx/htmlquery (exports: ; functions: Find,FindOne,QueryAll,Query)
|
||||
|
||||
// Package htmlquery is a stub of github.com/antchfx/htmlquery, generated by depstubber.
|
||||
@@ -8,22 +9,18 @@ package htmlquery
|
||||
|
||||
import ()
|
||||
|
||||
func Find(_ *interface{}, _ string) []*interface{} {
|
||||
func Find(_ interface{}, _ string) []interface{} {
|
||||
return nil
|
||||
}
|
||||
|
||||
func FindOne(_ *interface{}, _ string) *interface{} {
|
||||
func FindOne(_ interface{}, _ string) interface{} {
|
||||
return nil
|
||||
}
|
||||
|
||||
func Query(_ *interface{}, _ string) (*interface{}, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func Query(_ interface{}, _ string) (interface{}, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func QueryAll(_ *interface{}, _ string) ([]*interface{}, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func QueryAll(_ interface{}, _ string) ([]interface{}, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
9
ql/test/query-tests/Security/CWE-643/vendor/github.com/antchfx/jsonquery/stub.go
generated
vendored
9
ql/test/query-tests/Security/CWE-643/vendor/github.com/antchfx/jsonquery/stub.go
generated
vendored
@@ -1,6 +1,7 @@
|
||||
// Code generated by depstubber. DO NOT EDIT.
|
||||
// This is a simple stub for github.com/antchfx/jsonquery, strictly for use in testing.
|
||||
|
||||
// See the LICENSE file for information about the licensing of the original library.
|
||||
// Source: github.com/antchfx/jsonquery (exports: Node; functions: Find,FindOne,QueryAll,Query)
|
||||
|
||||
// Package jsonquery is a stub of github.com/antchfx/jsonquery, generated by depstubber.
|
||||
@@ -40,14 +41,10 @@ func (_ *Node) SelectElement(_ string) *Node {
|
||||
|
||||
type NodeType uint
|
||||
|
||||
func Query(_ *Node, _ string) (*Node, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func Query(_ *Node, _ string) (*Node, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func QueryAll(_ *Node, _ string) ([]*Node, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func QueryAll(_ *Node, _ string) ([]*Node, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
9
ql/test/query-tests/Security/CWE-643/vendor/github.com/antchfx/xmlquery/stub.go
generated
vendored
9
ql/test/query-tests/Security/CWE-643/vendor/github.com/antchfx/xmlquery/stub.go
generated
vendored
@@ -1,6 +1,7 @@
|
||||
// Code generated by depstubber. DO NOT EDIT.
|
||||
// This is a simple stub for github.com/antchfx/xmlquery, strictly for use in testing.
|
||||
|
||||
// See the LICENSE file for information about the licensing of the original library.
|
||||
// Source: github.com/antchfx/xmlquery (exports: Node; functions: Find,FindOne,FindEach,FindEachWithBreak,QueryAll,Query)
|
||||
|
||||
// Package xmlquery is a stub of github.com/antchfx/xmlquery, generated by depstubber.
|
||||
@@ -57,14 +58,10 @@ func (_ *Node) SelectElements(_ string) []*Node {
|
||||
|
||||
type NodeType uint
|
||||
|
||||
func Query(_ *Node, _ string) (*Node, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func Query(_ *Node, _ string) (*Node, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func QueryAll(_ *Node, _ string) ([]*Node, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func QueryAll(_ *Node, _ string) ([]*Node, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
5
ql/test/query-tests/Security/CWE-643/vendor/github.com/antchfx/xpath/stub.go
generated
vendored
5
ql/test/query-tests/Security/CWE-643/vendor/github.com/antchfx/xpath/stub.go
generated
vendored
@@ -1,6 +1,7 @@
|
||||
// Code generated by depstubber. DO NOT EDIT.
|
||||
// This is a simple stub for github.com/antchfx/xpath, strictly for use in testing.
|
||||
|
||||
// See the LICENSE file for information about the licensing of the original library.
|
||||
// Source: github.com/antchfx/xpath (exports: ; functions: Compile,MustCompile,Select)
|
||||
|
||||
// Package xpath is a stub of github.com/antchfx/xpath, generated by depstubber.
|
||||
@@ -8,9 +9,7 @@ package xpath
|
||||
|
||||
import ()
|
||||
|
||||
func Compile(_ string) (*Expr, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func Compile(_ string) (*Expr, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
|
||||
9
ql/test/query-tests/Security/CWE-643/vendor/github.com/go-xmlpath/xmlpath/stub.go
generated
vendored
9
ql/test/query-tests/Security/CWE-643/vendor/github.com/go-xmlpath/xmlpath/stub.go
generated
vendored
@@ -1,6 +1,7 @@
|
||||
// Code generated by depstubber. DO NOT EDIT.
|
||||
// This is a simple stub for github.com/go-xmlpath/xmlpath, strictly for use in testing.
|
||||
|
||||
// See the LICENSE file for information about the licensing of the original library.
|
||||
// Source: github.com/go-xmlpath/xmlpath (exports: ; functions: Compile,MustCompile)
|
||||
|
||||
// Package xmlpath is a stub of github.com/go-xmlpath/xmlpath, generated by depstubber.
|
||||
@@ -8,9 +9,7 @@ package xmlpath
|
||||
|
||||
import ()
|
||||
|
||||
func Compile(_ string) (*Path, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func Compile(_ string) (*Path, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
@@ -30,7 +29,7 @@ func MustCompile(_ string) *Path {
|
||||
|
||||
type Node struct{}
|
||||
|
||||
func (_ *Node) Bytes() []uint8 {
|
||||
func (_ *Node) Bytes() []byte {
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -40,7 +39,7 @@ func (_ *Node) String() string {
|
||||
|
||||
type Path struct{}
|
||||
|
||||
func (_ *Path) Bytes(_ *Node) ([]uint8, bool) {
|
||||
func (_ *Path) Bytes(_ *Node) ([]byte, bool) {
|
||||
return nil, false
|
||||
}
|
||||
|
||||
|
||||
783
ql/test/query-tests/Security/CWE-643/vendor/github.com/jbowtie/gokogiri/xml/stub.go
generated
vendored
783
ql/test/query-tests/Security/CWE-643/vendor/github.com/jbowtie/gokogiri/xml/stub.go
generated
vendored
File diff suppressed because it is too large
Load Diff
@@ -1,6 +1,7 @@
|
||||
// Code generated by depstubber. DO NOT EDIT.
|
||||
// This is a simple stub for github.com/jbowtie/gokogiri/xpath, strictly for use in testing.
|
||||
|
||||
// See the LICENSE file for information about the licensing of the original library.
|
||||
// Source: github.com/jbowtie/gokogiri/xpath (exports: ; functions: Compile)
|
||||
|
||||
// Package xpath is a stub of github.com/jbowtie/gokogiri/xpath, generated by depstubber.
|
||||
@@ -13,7 +14,7 @@ func Compile(_ string) *Expression {
|
||||
}
|
||||
|
||||
type Expression struct {
|
||||
Ptr *interface{}
|
||||
Ptr interface{}
|
||||
}
|
||||
|
||||
func (_ *Expression) Free() {}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
// Code generated by depstubber. DO NOT EDIT.
|
||||
// This is a simple stub for github.com/santhosh-tekuri/xpathparser, strictly for use in testing.
|
||||
|
||||
// See the LICENSE file for information about the licensing of the original library.
|
||||
// Source: github.com/santhosh-tekuri/xpathparser (exports: ; functions: Parse,MustParse)
|
||||
|
||||
// Package xpathparser is a stub of github.com/santhosh-tekuri/xpathparser, generated by depstubber.
|
||||
@@ -14,8 +15,6 @@ func MustParse(_ string) Expr {
|
||||
return nil
|
||||
}
|
||||
|
||||
func Parse(_ string) (Expr, interface {
|
||||
Error() string
|
||||
}) {
|
||||
func Parse(_ string) (Expr, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
@@ -13,30 +13,12 @@ github.com/antchfx/xmlquery
|
||||
# github.com/antchfx/xpath v1.1.5
|
||||
## explicit
|
||||
github.com/antchfx/xpath
|
||||
# github.com/github/depstubber v0.0.0-20200413231600-392d5a70208e
|
||||
## explicit
|
||||
github.com/github/depstubber
|
||||
# github.com/go-xmlpath/xmlpath v0.0.0-20150820204837-860cbeca3ebc
|
||||
## explicit
|
||||
github.com/go-xmlpath/xmlpath
|
||||
# github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e
|
||||
## explicit
|
||||
github.com/golang/groupcache
|
||||
# github.com/jbowtie/gokogiri v0.0.0-20190301021639-37f655d3078f
|
||||
## explicit
|
||||
github.com/jbowtie/gokogiri
|
||||
# github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e
|
||||
## explicit
|
||||
github.com/niemeyer/pretty
|
||||
# github.com/santhosh-tekuri/xpathparser v1.0.0
|
||||
## explicit
|
||||
github.com/santhosh-tekuri/xpathparser
|
||||
# golang.org/x/net v0.0.0-20200226121028-0de0cce0169b
|
||||
## explicit
|
||||
golang.org/x/net
|
||||
# gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f
|
||||
## explicit
|
||||
gopkg.in/check.v1
|
||||
# gopkg.in/xmlpath.v2 v2.0.0-20150820204837-860cbeca3ebc
|
||||
## explicit
|
||||
gopkg.in/xmlpath.v2
|
||||
|
||||
@@ -3,10 +3,6 @@ module filters.ClassifyFiles
|
||||
go 1.14
|
||||
|
||||
require (
|
||||
github.com/github/depstubber v0.0.0-20200414033246-a63ca77a1581 // indirect
|
||||
github.com/onsi/ginkgo v1.12.0
|
||||
github.com/onsi/gomega v1.9.0
|
||||
golang.org/x/net v0.0.0-20200226121028-0de0cce0169b // indirect
|
||||
golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e // indirect
|
||||
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 // indirect
|
||||
)
|
||||
|
||||
@@ -1,18 +1,6 @@
|
||||
# github.com/github/depstubber v0.0.0-20200414033246-a63ca77a1581
|
||||
## explicit
|
||||
github.com/github/depstubber
|
||||
# github.com/onsi/ginkgo v1.12.0
|
||||
## explicit
|
||||
github.com/onsi/ginkgo
|
||||
# github.com/onsi/gomega v1.9.0
|
||||
## explicit
|
||||
github.com/onsi/gomega
|
||||
# golang.org/x/net v0.0.0-20200226121028-0de0cce0169b
|
||||
## explicit
|
||||
golang.org/x/net
|
||||
# golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e
|
||||
## explicit
|
||||
golang.org/x/sync
|
||||
# golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543
|
||||
## explicit
|
||||
golang.org/x/xerrors
|
||||
|
||||
Reference in New Issue
Block a user