@@ -19,35 +19,47 @@ package db
1919
2020// Definitions of these should correspond to public API
2121//
22- // Deprecated: Use QueryType instead. This will be removed in a future release.
22+ // Deprecated: Use neo4j. QueryType instead. This will be removed in a future release.
2323type StatementType int
2424
2525const (
26- // Deprecated: Use QueryTypeUnknown instead. This will be removed in a future release.
26+ // Deprecated: Use neo4j. QueryTypeUnknown instead. This will be removed in a future release.
2727 StatementTypeUnknown StatementType = 0
28- // Deprecated: Use QueryTypeRead instead. This will be removed in a future release.
28+ // Deprecated: Use neo4j.QueryTypeReadOnly instead. This will be removed in a future release.
2929 StatementTypeRead StatementType = 1
30- // Deprecated: Use QueryTypeReadWrite instead. This will be removed in a future release.
30+ // Deprecated: Use neo4j. QueryTypeReadWrite instead. This will be removed in a future release.
3131 StatementTypeReadWrite StatementType = 2
32- // Deprecated: Use QueryTypeWrite instead. This will be removed in a future release.
32+ // Deprecated: Use neo4j.QueryTypeWriteOnly instead. This will be removed in a future release.
3333 StatementTypeWrite StatementType = 3
34- // Deprecated: Use QueryTypeSchemaWrite instead. This will be removed in a future release.
34+ // Deprecated: Use neo4j. QueryTypeSchemaWrite instead. This will be removed in a future release.
3535 StatementTypeSchemaWrite StatementType = 4
3636)
3737
3838// QueryType defines the type of the query
39+ //
40+ // Deprecated: Use neo4j.QueryType instead. This will be removed in a future release.
3941type QueryType = StatementType
4042
4143const (
4244 // QueryTypeUnknown identifies an unknown query type
45+ //
46+ // Deprecated: Use neo4j.QueryTypeUnknown instead. This will be removed in a future release.
4347 QueryTypeUnknown QueryType = 0
4448 // QueryTypeRead identifies a read query
49+ //
50+ // Deprecated: Use neo4j.QueryTypeReadOnly instead. This will be removed in a future release.
4551 QueryTypeRead QueryType = 1
4652 // QueryTypeReadWrite identifies a read-write query
53+ //
54+ // Deprecated: Use neo4j.QueryTypeReadWrite instead. This will be removed in a future release.
4755 QueryTypeReadWrite QueryType = 2
4856 // QueryTypeWrite identifies a write query
57+ //
58+ // Deprecated: Use neo4j.QueryTypeWriteOnly instead. This will be removed in a future release.
4959 QueryTypeWrite QueryType = 3
5060 // QueryTypeSchemaWrite identifies a schema-write query
61+ //
62+ // Deprecated: Use neo4j.QueryTypeSchemaWrite instead. This will be removed in a future release.
5163 QueryTypeSchemaWrite QueryType = 4
5264)
5365
@@ -73,6 +85,8 @@ const (
7385// plans. The statement starts with the root plan. Each sub-plan is of a specific operator, which describes what
7486// that part of the plan does - for instance, perform an index lookup or filter results.
7587// The Neo4j Manual contains a reference of the available operator types, and these may differ across Neo4j versions.
88+ //
89+ // Deprecated: Internal type. This will be removed in a future release.
7690type Plan struct {
7791 // Operator is the operation this plan is performing.
7892 Operator string
@@ -90,6 +104,8 @@ type Plan struct {
90104
91105// ProfiledPlan is the same as a regular Plan - except this plan has been executed, meaning it also
92106// contains detailed information about how much work each step of the plan incurred on the database.
107+ //
108+ // Deprecated: Internal type. This will be removed in a future release.
93109type ProfiledPlan struct {
94110 // Operator contains the operation this plan is performing.
95111 Operator string
@@ -113,6 +129,7 @@ type ProfiledPlan struct {
113129 Time int64
114130}
115131
132+ // Deprecated: Internal type. This will be removed in a future release.
116133type StreamSummary struct {
117134 HadRecord bool
118135 HadKey bool
@@ -131,6 +148,8 @@ type Notification struct {
131148// GqlStatusObject represents a GqlStatusObject generated when executing a statement.
132149// A GqlStatusObject can be visualized in a client pinpointing problems or other information about the statement.
133150// Contrary to failures or errors, GqlStatusObjects do not affect the execution of the statement.
151+ //
152+ // Deprecated: Internal type. This will be removed in a future release.
134153type GqlStatusObject struct {
135154 // Deprecated: for backward compatibility with Notification.Code only.
136155 Code string
@@ -175,6 +194,8 @@ type GqlStatusObject struct {
175194}
176195
177196// InputPosition contains information about a specific position in a statement
197+ //
198+ // Deprecated: Internal type. This will be removed in a future release.
178199type InputPosition struct {
179200 // Offset contains the character offset referred to by this position; offset numbers start at 0.
180201 Offset int
@@ -189,6 +210,7 @@ type ProtocolVersion struct {
189210 Minor int
190211}
191212
213+ // Deprecated: Internal type. This will be removed in a future release.
192214type Summary struct {
193215 Bookmark string
194216 StmntType StatementType
0 commit comments