types

package
v1.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 13, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

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 Command

type Command struct {
	Command string `json:"command"`
}

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 Exception

type Exception struct {
	Text    string `json:"text"`
	SQLCode string `json:"sqlCode"`
}

type ExecutePreparedStatementCommand

type ExecutePreparedStatementCommand struct {
	Command
	StatementHandle int              `json:"statementHandle"`
	NumColumns      int              `json:"numColumns,omitempty"`
	NumRows         int              `json:"numRows"`
	Columns         []SqlQueryColumn `json:"columns,omitempty"`
	Data            [][]interface{}  `json:"data"`
	Attributes      Attributes       `json:"attributes,omitempty"`
}

type FetchCommand

type FetchCommand struct {
	Command
	ResultSetHandle int `json:"resultSetHandle"`
	StartPosition   int `json:"startPosition"`
	NumBytes        int `json:"numBytes"`
}

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 PublicKeyResponse struct {
	PublicKeyPem      string `json:"publicKeyPem"`
	PublicKeyModulus  string `json:"publicKeyModulus"`
	PublicKeyExponent string `json:"publicKeyExponent"`
}

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"`
}

type SqlQueryResponseRowCount

type SqlQueryResponseRowCount struct {
	ResultType string `json:"resultType"`
	RowCount   int    `json:"rowCount"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL