Source File
const.go
Belonging Package
github.com/go-sql-driver/mysql
// Go MySQL Driver - A MySQL-Driver for Go's database/sql package//// Copyright 2012 The Go-MySQL-Driver Authors. All rights reserved.//// This Source Code Form is subject to the terms of the Mozilla Public// License, v. 2.0. If a copy of the MPL was not distributed with this file,// You can obtain one at http://mozilla.org/MPL/2.0/.package mysqlconst (defaultAuthPlugin = "mysql_native_password"defaultMaxAllowedPacket = 4 << 20 // 4 MiBminProtocolVersion = 10maxPacketSize = 1<<24 - 1timeFormat = "2006-01-02 15:04:05.999999")// MySQL constants documentation:// http://dev.mysql.com/doc/internals/en/client-server-protocol.htmlconst (iOK byte = 0x00iAuthMoreData byte = 0x01iLocalInFile byte = 0xfbiEOF byte = 0xfeiERR byte = 0xff)// https://dev.mysql.com/doc/internals/en/capability-flags.html#packet-Protocol::CapabilityFlagstype clientFlag uint32const (clientLongPassword clientFlag = 1 << iotaclientFoundRowsclientLongFlagclientConnectWithDBclientNoSchemaclientCompressclientODBCclientLocalFilesclientIgnoreSpaceclientProtocol41clientInteractiveclientSSLclientIgnoreSIGPIPEclientTransactionsclientReservedclientSecureConnclientMultiStatementsclientMultiResultsclientPSMultiResultsclientPluginAuthclientConnectAttrsclientPluginAuthLenEncClientDataclientCanHandleExpiredPasswordsclientSessionTrackclientDeprecateEOF)const (comQuit byte = iota + 1comInitDBcomQuerycomFieldListcomCreateDBcomDropDBcomRefreshcomShutdowncomStatisticscomProcessInfocomConnectcomProcessKillcomDebugcomPingcomTimecomDelayedInsertcomChangeUsercomBinlogDumpcomTableDumpcomConnectOutcomRegisterSlavecomStmtPreparecomStmtExecutecomStmtSendLongDatacomStmtClosecomStmtResetcomSetOptioncomStmtFetch)// https://dev.mysql.com/doc/internals/en/com-query-response.html#packet-Protocol::ColumnTypetype fieldType byteconst (fieldTypeDecimal fieldType = iotafieldTypeTinyfieldTypeShortfieldTypeLongfieldTypeFloatfieldTypeDoublefieldTypeNULLfieldTypeTimestampfieldTypeLongLongfieldTypeInt24fieldTypeDatefieldTypeTimefieldTypeDateTimefieldTypeYearfieldTypeNewDatefieldTypeVarCharfieldTypeBit)const (fieldTypeJSON fieldType = iota + 0xf5fieldTypeNewDecimalfieldTypeEnumfieldTypeSetfieldTypeTinyBLOBfieldTypeMediumBLOBfieldTypeLongBLOBfieldTypeBLOBfieldTypeVarStringfieldTypeStringfieldTypeGeometry)type fieldFlag uint16const (flagNotNULL fieldFlag = 1 << iotaflagPriKeyflagUniqueKeyflagMultipleKeyflagBLOBflagUnsignedflagZeroFillflagBinaryflagEnumflagAutoIncrementflagTimestampflagSetflagUnknown1flagUnknown2flagUnknown3flagUnknown4)// http://dev.mysql.com/doc/internals/en/status-flags.htmltype statusFlag uint16const (statusInTrans statusFlag = 1 << iotastatusInAutocommitstatusReserved // Not in documentationstatusMoreResultsExistsstatusNoGoodIndexUsedstatusNoIndexUsedstatusCursorExistsstatusLastRowSentstatusDbDroppedstatusNoBackslashEscapesstatusMetadataChangedstatusQueryWasSlowstatusPsOutParamsstatusInTransReadonlystatusSessionStateChanged)const (cachingSha2PasswordRequestPublicKey = 2cachingSha2PasswordFastAuthSuccess = 3cachingSha2PasswordPerformFullAuthentication = 4)
![]() |
The pages are generated with Golds v0.3.6. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |