Benign golang download unavailable

gorm.io/driver/sqlserver v1.6.1

Go functions have machine-generated namesGitHub Actions workflow definition path
SHA-25675dd8ca412026b6f53fd8a77579dbe92ea5334680d1e322eb165f3fd9b1e382d

Evidence

Go functions have machine-generated names migrator_test.go · lines 1–39
1package sqlserver_test
2
3import (
4 "encoding/json"
5 "os"
6 "reflect"
7 "testing"
8 "time"
9
10 "gorm.io/driver/sqlserver"
11 "gorm.io/gorm"
12)
13
14var sqlserverDSN = "sqlserver://gorm:LoremIpsum86@localhost:9930?database=gorm"
15
16func init() {
17 if dbDSN := os.Getenv("GORM_DSN"); dbDSN != "" {
18 sqlserverDSN = dbDSN
19 }
⋯9 lines
29}
30
31func (*Testtable2) TableName() string { return "testtables" }
32
33type Testtable3 struct {
⋯6 lines
GORM AutoMigrate schema-create call migrator_test.go · lines 62–68
62:11… "couldn't create schema testschema2", tx.Error)
63 }
64
65 if err = db.AutoMigrate(&Testtable{}); err != nil {
66 t.Error("couldn't create a table at user default schema", err)
67 }
68 if err = db.AutoMigrate(&Testta …
DROP SQL object syntax reference migrator_test.go · lines 78–85
78:24… ate a table at schema testschema2", err)
79 }
80
81 if tx := db.Exec("drop table testtables"); tx.Error != nil {
82 t.Error("couldn't drop table testtable at user default schema", tx.Error)
83 }
84
85 if tx := db.Ex …
Repeated Go reflection API usage create.go · lines 53–58
53:93… ment {
54 switch db.Statement.ReflectValue.Kind() {
55 case reflect.Struct:
56 _, isZero := field.ValueOf(db.Statement.Context, db.Statement.ReflectValue)
57 setIdentityInsert = !isZero
58 …
gorm.io ORM sqlserver.go · lines 1–23
1package sqlserver
2
3import (
4 "database/sql"
5 "fmt"
6 "regexp"
7 "strconv"
8 "strings"
9
10 _ "github.com/microsoft/go-mssqldb"
11 "gorm.io/gorm"
12 "gorm.io/gorm/callbacks"
13 "gorm.io/gorm/clause"
14 "gorm.io/gorm/logger"
15 "gorm.io/gorm/migrator"
16 "gorm.io/gorm/schema"
17)
18
⋯5 lines

No evidence locations were recorded for this file. Raw result

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.