github.com/goplus/gossa@v0.3.25/pkg/database/sql/go115_export.go (about) 1 // export by github.com/goplus/gossa/cmd/qexp 2 3 //+build go1.15,!go1.16 4 5 package sql 6 7 import ( 8 q "database/sql" 9 10 "go/constant" 11 "reflect" 12 13 "github.com/goplus/gossa" 14 ) 15 16 func init() { 17 gossa.RegisterPackage(&gossa.Package{ 18 Name: "sql", 19 Path: "database/sql", 20 Deps: map[string]string{ 21 "context": "context", 22 "database/sql/driver": "driver", 23 "errors": "errors", 24 "fmt": "fmt", 25 "io": "io", 26 "reflect": "reflect", 27 "runtime": "runtime", 28 "sort": "sort", 29 "strconv": "strconv", 30 "sync": "sync", 31 "sync/atomic": "atomic", 32 "time": "time", 33 "unicode": "unicode", 34 "unicode/utf8": "utf8", 35 }, 36 Interfaces: map[string]reflect.Type{ 37 "Result": reflect.TypeOf((*q.Result)(nil)).Elem(), 38 "Scanner": reflect.TypeOf((*q.Scanner)(nil)).Elem(), 39 }, 40 NamedTypes: map[string]gossa.NamedType{ 41 "ColumnType": {reflect.TypeOf((*q.ColumnType)(nil)).Elem(), "", "DatabaseTypeName,DecimalSize,Length,Name,Nullable,ScanType"}, 42 "Conn": {reflect.TypeOf((*q.Conn)(nil)).Elem(), "", "BeginTx,Close,ExecContext,PingContext,PrepareContext,QueryContext,QueryRowContext,Raw,close,closemuRUnlockCondReleaseConn,grabConn,txCtx"}, 43 "DB": {reflect.TypeOf((*q.DB)(nil)).Elem(), "", "Begin,BeginTx,Close,Conn,Driver,Exec,ExecContext,Ping,PingContext,Prepare,PrepareContext,Query,QueryContext,QueryRow,QueryRowContext,SetConnMaxIdleTime,SetConnMaxLifetime,SetMaxIdleConns,SetMaxOpenConns,Stats,addDep,addDepLocked,begin,beginDC,conn,connectionCleaner,connectionCleanerRunLocked,connectionOpener,exec,execDC,maxIdleConnsLocked,maybeOpenNewConnections,nextRequestKeyLocked,noteUnusedDriverStatement,openNewConnection,pingDC,prepare,prepareDC,putConn,putConnDBLocked,query,queryDC,removeDep,removeDepLocked,shortestIdleTimeLocked,startCleanerLocked"}, 44 "DBStats": {reflect.TypeOf((*q.DBStats)(nil)).Elem(), "", ""}, 45 "IsolationLevel": {reflect.TypeOf((*q.IsolationLevel)(nil)).Elem(), "String", ""}, 46 "NamedArg": {reflect.TypeOf((*q.NamedArg)(nil)).Elem(), "", ""}, 47 "NullBool": {reflect.TypeOf((*q.NullBool)(nil)).Elem(), "Value", "Scan"}, 48 "NullFloat64": {reflect.TypeOf((*q.NullFloat64)(nil)).Elem(), "Value", "Scan"}, 49 "NullInt32": {reflect.TypeOf((*q.NullInt32)(nil)).Elem(), "Value", "Scan"}, 50 "NullInt64": {reflect.TypeOf((*q.NullInt64)(nil)).Elem(), "Value", "Scan"}, 51 "NullString": {reflect.TypeOf((*q.NullString)(nil)).Elem(), "Value", "Scan"}, 52 "NullTime": {reflect.TypeOf((*q.NullTime)(nil)).Elem(), "Value", "Scan"}, 53 "Out": {reflect.TypeOf((*q.Out)(nil)).Elem(), "", ""}, 54 "RawBytes": {reflect.TypeOf((*q.RawBytes)(nil)).Elem(), "", ""}, 55 "Row": {reflect.TypeOf((*q.Row)(nil)).Elem(), "", "Err,Scan"}, 56 "Rows": {reflect.TypeOf((*q.Rows)(nil)).Elem(), "", "Close,ColumnTypes,Columns,Err,Next,NextResultSet,Scan,awaitDone,close,initContextClose,lasterrOrErrLocked,nextLocked"}, 57 "Stmt": {reflect.TypeOf((*q.Stmt)(nil)).Elem(), "", "Close,Exec,ExecContext,Query,QueryContext,QueryRow,QueryRowContext,connStmt,finalClose,prepareOnConnLocked,removeClosedStmtLocked"}, 58 "Tx": {reflect.TypeOf((*q.Tx)(nil)).Elem(), "", "Commit,Exec,ExecContext,Prepare,PrepareContext,Query,QueryContext,QueryRow,QueryRowContext,Rollback,Stmt,StmtContext,awaitDone,close,closePrepared,closemuRUnlockRelease,grabConn,isDone,rollback,txCtx"}, 59 "TxOptions": {reflect.TypeOf((*q.TxOptions)(nil)).Elem(), "", ""}, 60 }, 61 AliasTypes: map[string]reflect.Type{}, 62 Vars: map[string]reflect.Value{ 63 "ErrConnDone": reflect.ValueOf(&q.ErrConnDone), 64 "ErrNoRows": reflect.ValueOf(&q.ErrNoRows), 65 "ErrTxDone": reflect.ValueOf(&q.ErrTxDone), 66 }, 67 Funcs: map[string]reflect.Value{ 68 "Drivers": reflect.ValueOf(q.Drivers), 69 "Named": reflect.ValueOf(q.Named), 70 "Open": reflect.ValueOf(q.Open), 71 "OpenDB": reflect.ValueOf(q.OpenDB), 72 "Register": reflect.ValueOf(q.Register), 73 }, 74 TypedConsts: map[string]gossa.TypedConst{ 75 "LevelDefault": {reflect.TypeOf(q.LevelDefault), constant.MakeInt64(int64(q.LevelDefault))}, 76 "LevelLinearizable": {reflect.TypeOf(q.LevelLinearizable), constant.MakeInt64(int64(q.LevelLinearizable))}, 77 "LevelReadCommitted": {reflect.TypeOf(q.LevelReadCommitted), constant.MakeInt64(int64(q.LevelReadCommitted))}, 78 "LevelReadUncommitted": {reflect.TypeOf(q.LevelReadUncommitted), constant.MakeInt64(int64(q.LevelReadUncommitted))}, 79 "LevelRepeatableRead": {reflect.TypeOf(q.LevelRepeatableRead), constant.MakeInt64(int64(q.LevelRepeatableRead))}, 80 "LevelSerializable": {reflect.TypeOf(q.LevelSerializable), constant.MakeInt64(int64(q.LevelSerializable))}, 81 "LevelSnapshot": {reflect.TypeOf(q.LevelSnapshot), constant.MakeInt64(int64(q.LevelSnapshot))}, 82 "LevelWriteCommitted": {reflect.TypeOf(q.LevelWriteCommitted), constant.MakeInt64(int64(q.LevelWriteCommitted))}, 83 }, 84 UntypedConsts: map[string]gossa.UntypedConst{}, 85 }) 86 }