File tree Expand file tree Collapse file tree 1 file changed +0
-23
lines changed
go/ql/test/library-tests/semmle/go/dataflow/flowsources/local/database Expand file tree Collapse file tree 1 file changed +0
-23
lines changed Original file line number Diff line number Diff line change @@ -10,18 +10,6 @@ import (
1010 "go.mongodb.org/mongo-driver/mongo"
1111)
1212
13- func mongoDB (ctx context.Context , userCollection mongo.Collection ) {
14- type User struct {
15- }
16-
17- var u1 User
18-
19- result := userCollection .FindOne (ctx , nil ) // $source
20- result .Decode (& u1 )
21-
22- fmt .Println (u1 )
23- }
24-
2513func gogf (g gdb.DB ) {
2614 u1 , err := g .GetOne ("SELECT user from users" ) // $source
2715
@@ -49,14 +37,3 @@ func couchbase(coll *gocb.Collection) {
4937
5038 fmt .Println (user )
5139}
52-
53- func GoRqlite (conn * gorqlite.Connection ) {
54- var id int64
55- var name string
56-
57- rows , err := conn .QueryOne ("select id, name from foo where id = 1" ) // $source
58- if err != nil {
59- return
60- }
61- rows .Scan (& id , & name )
62- }
You can’t perform that action at this time.
0 commit comments