github.com/goplus/gossa@v0.3.25/pkg/database/sql/go118_export.go (about) 1 // export by github.com/goplus/gossa/cmd/qexp 2 3 //go:build go1.18 4 // +build go1.18 5 6 package sql 7 8 import ( 9 q "database/sql" 10 11 "go/constant" 12 "reflect" 13 14 "github.com/goplus/gossa" 15 ) 16 17 func init() { 18 gossa.RegisterPackage(&gossa.Package{ 19 Name: "sql", 20 Path: "database/sql", 21 Deps: map[string]string{ 22 "context": "context", 23 "database/sql/driver": "driver", 24 "errors": "errors", 25 "fmt": "fmt", 26 "io": "io", 27 "reflect": "reflect", 28 "runtime": "runtime", 29 "sort": "sort", 30 "strconv": "strconv", 31 "sync": "sync", 32 "sync/atomic": "atomic", 33 "time": "time", 34 "unicode": "unicode", 35 "unicode/utf8": "utf8", 36 }, 37 Interfaces: map[string]reflect.Type{ 38 "Result": reflect.TypeOf((*q.Result)(nil)).Elem(), 39 "Scanner": reflect.TypeOf((*q.Scanner)(nil)).Elem(), 40 }, 41 NamedTypes: map[string]gossa.NamedType{ 42 "ColumnType": {reflect.TypeOf((*q.ColumnType)(nil)).Elem(), "", "DatabaseTypeName,DecimalSize,Length,Name,Nullable,ScanType"}, 43 "Conn": {reflect.TypeOf((*q.Conn)(nil)).Elem(), "", "BeginTx,Close,ExecContext,PingContext,PrepareContext,QueryContext,QueryRowContext,Raw,close,closemuRUnlockCondReleaseConn,grabConn,txCtx"}, 44 "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"}, 45 "DBStats": {reflect.TypeOf((*q.DBStats)(nil)).Elem(), "", ""}, 46 "IsolationLevel": {reflect.TypeOf((*q.IsolationLevel)(nil)).Elem(), "String", ""}, 47 "NamedArg": {reflect.TypeOf((*q.NamedArg)(nil)).Elem(), "", ""}, 48 "NullBool": {reflect.TypeOf((*q.NullBool)(nil)).Elem(), "Value", "Scan"}, 49 "NullByte": {reflect.TypeOf((*q.NullByte)(nil)).Elem(), "Value", "Scan"}, 50 "NullFloat64": {reflect.TypeOf((*q.NullFloat64)(nil)).Elem(), "Value", "Scan"}, 51 "NullInt16": {reflect.TypeOf((*q.NullInt16)(nil)).Elem(), "Value", "Scan"}, 52 "NullInt32": {reflect.TypeOf((*q.NullInt32)(nil)).Elem(), "Value", "Scan"}, 53 "NullInt64": {reflect.TypeOf((*q.NullInt64)(nil)).Elem(), "Value", "Scan"}, 54 "NullString": {reflect.TypeOf((*q.NullString)(nil)).Elem(), "Value", "Scan"}, 55 "NullTime": {reflect.TypeOf((*q.NullTime)(nil)).Elem(), "Value", "Scan"}, 56 "Out": {reflect.TypeOf((*q.Out)(nil)).Elem(), "", ""}, 57 "RawBytes": {reflect.TypeOf((*q.RawBytes)(nil)).Elem(), "", ""}, 58 "Row": {reflect.TypeOf((*q.Row)(nil)).Elem(), "", "Err,Scan"}, 59 "Rows": {reflect.TypeOf((*q.Rows)(nil)).Elem(), "", "Close,ColumnTypes,Columns,Err,Next,NextResultSet,Scan,awaitDone,close,initContextClose,lasterrOrErrLocked,nextLocked"}, 60 "Stmt": {reflect.TypeOf((*q.Stmt)(nil)).Elem(), "", "Close,Exec,ExecContext,Query,QueryContext,QueryRow,QueryRowContext,connStmt,finalClose,prepareOnConnLocked,removeClosedStmtLocked"}, 61 "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"}, 62 "TxOptions": {reflect.TypeOf((*q.TxOptions)(nil)).Elem(), "", ""}, 63 }, 64 AliasTypes: map[string]reflect.Type{}, 65 Vars: map[string]reflect.Value{ 66 "ErrConnDone": reflect.ValueOf(&q.ErrConnDone), 67 "ErrNoRows": reflect.ValueOf(&q.ErrNoRows), 68 "ErrTxDone": reflect.ValueOf(&q.ErrTxDone), 69 }, 70 Funcs: map[string]reflect.Value{ 71 "Drivers": reflect.ValueOf(q.Drivers), 72 "Named": reflect.ValueOf(q.Named), 73 "Open": reflect.ValueOf(q.Open), 74 "OpenDB": reflect.ValueOf(q.OpenDB), 75 "Register": reflect.ValueOf(q.Register), 76 }, 77 TypedConsts: map[string]gossa.TypedConst{ 78 "LevelDefault": {reflect.TypeOf(q.LevelDefault), constant.MakeInt64(int64(q.LevelDefault))}, 79 "LevelLinearizable": {reflect.TypeOf(q.LevelLinearizable), constant.MakeInt64(int64(q.LevelLinearizable))}, 80 "LevelReadCommitted": {reflect.TypeOf(q.LevelReadCommitted), constant.MakeInt64(int64(q.LevelReadCommitted))}, 81 "LevelReadUncommitted": {reflect.TypeOf(q.LevelReadUncommitted), constant.MakeInt64(int64(q.LevelReadUncommitted))}, 82 "LevelRepeatableRead": {reflect.TypeOf(q.LevelRepeatableRead), constant.MakeInt64(int64(q.LevelRepeatableRead))}, 83 "LevelSerializable": {reflect.TypeOf(q.LevelSerializable), constant.MakeInt64(int64(q.LevelSerializable))}, 84 "LevelSnapshot": {reflect.TypeOf(q.LevelSnapshot), constant.MakeInt64(int64(q.LevelSnapshot))}, 85 "LevelWriteCommitted": {reflect.TypeOf(q.LevelWriteCommitted), constant.MakeInt64(int64(q.LevelWriteCommitted))}, 86 }, 87 UntypedConsts: map[string]gossa.UntypedConst{}, 88 }) 89 }