Documentation
¶
Index ¶
- type Attributes
- type AuthCommand
- type AuthResponse
- type BaseResponse
- type ClosePreparedStatementCommand
- type CloseResultSetCommand
- type Command
- type CreatePreparedStatementCommand
- type CreatePreparedStatementResponse
- type Exception
- type ExecutePreparedStatementCommand
- type FetchCommand
- type LoginCommand
- type LoginTokenCommand
- type ParameterData
- type PublicKeyResponse
- type SqlCommand
- type SqlQueriesResponse
- type SqlQueryColumn
- type SqlQueryColumnType
- type SqlQueryResponseResultSet
- type SqlQueryResponseResultSetData
- type SqlQueryResponseRowCount
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attributes ¶
type Attributes struct {
Autocommit *bool `json:"autocommit,omitempty"`
CompressionEnabled *bool `json:"compressionEnabled,omitempty"`
CurrentSchema string `json:"currentSchema,omitempty"`
DateFormat string `json:"dateFormat,omitempty"`
DateLanguage string `json:"dateLanguage,omitempty"`
DatetimeFormat string `json:"datetimeFormat,omitempty"`
DefaultLikeEscapeCharacter string `json:"defaultLikeEscapeCharacter,omitempty"`
FeedbackInterval int `json:"feedbackInterval,omitempty"`
NumericCharacters string `json:"numericCharacters,omitempty"`
OpenTransaction *bool `json:"openTransaction,omitempty"`
QueryTimeout int `json:"queryTimeout,omitempty"`
SnapshotTransactionsEnabled *bool `json:"snapshotTransactionsEnabled,omitempty"`
TimestampUtcEnabled *bool `json:"timestampUtcEnabled,omitempty"`
Timezone string `json:"timezone,omitempty"`
TimeZoneBehavior string `json:"timeZoneBehavior,omitempty"`
ResultSetMaxRows int `json:"resultSetMaxRows,omitempty"`
}
type AuthCommand ¶
type AuthCommand struct {
Username string `json:"username,omitempty"`
Password string `json:"password,omitempty"`
AccessToken string `json:"accessToken,omitempty"`
RefreshToken string `json:"refreshToken,omitempty"`
UseCompression bool `json:"useCompression"`
SessionID int `json:"sessionId,omitempty"`
ClientName string `json:"clientName,omitempty"`
DriverName string `json:"driverName,omitempty"`
ClientOs string `json:"clientOs,omitempty"`
ClientOsUsername string `json:"clientOsUsername,omitempty"`
ClientLanguage string `json:"clientLanguage,omitempty"`
ClientVersion string `json:"clientVersion,omitempty"`
ClientRuntime string `json:"clientRuntime,omitempty"`
Attributes Attributes `json:"attributes,omitempty"`
}
type AuthResponse ¶
type AuthResponse struct {
SessionID int `json:"sessionId"`
ProtocolVersion int `json:"protocolVersion"`
ReleaseVersion string `json:"releaseVersion"`
DatabaseName string `json:"databaseName"`
ProductName string `json:"productName"`
MaxDataMessageSize int `json:"maxDataMessageSize"`
MaxIdentifierLength int `json:"maxIdentifierLength"`
MaxVarcharLength int `json:"maxVarcharLength"`
IdentifierQuoteString string `json:"identifierQuoteString"`
TimeZone string `json:"timeZone"`
TimeZoneBehavior string `json:"timeZoneBehavior"`
}
type BaseResponse ¶
type BaseResponse struct {
Status string `json:"status"`
ResponseData json.RawMessage `json:"responseData"`
Exception *Exception `json:"exception"`
}
type ClosePreparedStatementCommand ¶
type ClosePreparedStatementCommand struct {
Command
StatementHandle int `json:"statementHandle"`
Attributes Attributes `json:"attributes,omitempty"`
}
type CloseResultSetCommand ¶
type CloseResultSetCommand struct {
Command
ResultSetHandles []int `json:"resultSetHandles"`
Attributes Attributes `json:"attributes,omitempty"`
}
type CreatePreparedStatementCommand ¶
type CreatePreparedStatementCommand struct {
Command
SQLText string `json:"sqlText"`
Attributes Attributes `json:"attributes,omitempty"`
}
type CreatePreparedStatementResponse ¶
type CreatePreparedStatementResponse struct {
StatementHandle int `json:"statementHandle"`
ParameterData ParameterData `json:"parameterData,omitempty"`
}
type ExecutePreparedStatementCommand ¶
type ExecutePreparedStatementCommand struct {
Command
StatementHandle int `json:"statementHandle"`
NumColumns int `json:"numColumns"`
NumRows int `json:"numRows"`
Columns []SqlQueryColumn `json:"columns,omitempty"`
Data [][]interface{} `json:"data"`
Attributes Attributes `json:"attributes,omitempty"`
}
type FetchCommand ¶
type LoginCommand ¶
type LoginCommand struct {
Command
ProtocolVersion int `json:"protocolVersion"`
Attributes Attributes `json:"attributes,omitempty"`
}
type LoginTokenCommand ¶
type LoginTokenCommand struct {
Command
ProtocolVersion int `json:"protocolVersion"`
Attributes Attributes `json:"attributes,omitempty"`
}
type ParameterData ¶
type ParameterData struct {
NumColumns int `json:"numColumns"`
Columns []SqlQueryColumn `json:"columns"`
SqlQueriesResponse
}
type PublicKeyResponse ¶
type SqlCommand ¶
type SqlCommand struct {
Command
SQLText string `json:"sqlText"`
Attributes Attributes `json:"attributes,omitempty"`
}
type SqlQueriesResponse ¶
type SqlQueriesResponse struct {
NumResults int `json:"numResults"`
Results []json.RawMessage `json:"results"`
}
type SqlQueryColumn ¶
type SqlQueryColumn struct {
Name string `json:"name"`
DataType SqlQueryColumnType `json:"dataType"`
}
type SqlQueryColumnType ¶
type SqlQueryColumnType struct {
Type string `json:"type"`
Precision *int64 `json:"precision,omitempty"`
Scale *int64 `json:"scale,omitempty"`
Size *int64 `json:"size,omitempty"`
CharacterSet *string `json:"characterSet,omitempty"`
WithLocalTimeZone *bool `json:"withLocalTimeZone,omitempty"`
Fraction *int `json:"fraction,omitempty"`
SRID *int `json:"srid,omitempty"`
}
type SqlQueryResponseResultSet ¶
type SqlQueryResponseResultSet struct {
ResultType string `json:"resultType"`
ResultSet SqlQueryResponseResultSetData `json:"resultSet"`
}
type SqlQueryResponseResultSetData ¶
type SqlQueryResponseResultSetData struct {
ResultSetHandle int `json:"resultSetHandle"`
NumColumns int `json:"numColumns,omitempty"`
NumRows int `json:"numRows"`
NumRowsInMessage int `json:"numRowsInMessage"`
Columns []SqlQueryColumn `json:"columns,omitempty"`
Data [][]interface{} `json:"data"`
}
Click to show internal directories.
Click to hide internal directories.