-
Notifications
You must be signed in to change notification settings - Fork 80
/
query_details.go
71 lines (55 loc) · 2.62 KB
/
query_details.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved.
// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
// Code generated. DO NOT EDIT.
// NoSQL Database API
//
// The control plane API for NoSQL Database Cloud Service HTTPS
// provides endpoints to perform NDCS operations, including creation
// and deletion of tables and indexes; population and access of data
// in tables; and access of table usage metrics.
//
package nosql
import (
"github.com/oracle/oci-go-sdk/v43/common"
)
// QueryDetails All the information surrounding a query, including the query statement,
// limits, consistency, and so forth.
type QueryDetails struct {
// Compartment OCID, to provide context for a table name in
// the given statement.
CompartmentId *string `mandatory:"true" json:"compartmentId"`
// A NoSQL SQL query statement; or a Base64-encoded prepared statement.
Statement *string `mandatory:"true" json:"statement"`
// If true, the statement is a prepared statement.
IsPrepared *bool `mandatory:"false" json:"isPrepared"`
// Consistency requirement for a read operation.
Consistency QueryDetailsConsistencyEnum `mandatory:"false" json:"consistency,omitempty"`
// A limit on the total amount of data read during this operation, in KB.
MaxReadInKBs *int `mandatory:"false" json:"maxReadInKBs"`
// A map of prepared statement variables to values.
Variables map[string]interface{} `mandatory:"false" json:"variables"`
// Timeout setting for the query.
TimeoutInMs *int `mandatory:"false" json:"timeoutInMs"`
}
func (m QueryDetails) String() string {
return common.PointerString(m)
}
// QueryDetailsConsistencyEnum Enum with underlying type: string
type QueryDetailsConsistencyEnum string
// Set of constants representing the allowable values for QueryDetailsConsistencyEnum
const (
QueryDetailsConsistencyEventual QueryDetailsConsistencyEnum = "EVENTUAL"
QueryDetailsConsistencyAbsolute QueryDetailsConsistencyEnum = "ABSOLUTE"
)
var mappingQueryDetailsConsistency = map[string]QueryDetailsConsistencyEnum{
"EVENTUAL": QueryDetailsConsistencyEventual,
"ABSOLUTE": QueryDetailsConsistencyAbsolute,
}
// GetQueryDetailsConsistencyEnumValues Enumerates the set of values for QueryDetailsConsistencyEnum
func GetQueryDetailsConsistencyEnumValues() []QueryDetailsConsistencyEnum {
values := make([]QueryDetailsConsistencyEnum, 0)
for _, v := range mappingQueryDetailsConsistency {
values = append(values, v)
}
return values
}