66
77package options
88
9+ import "go.mongodb.org/mongo-driver/v2/internal/optionsutil"
10+
911// CreateIndexesOptions represents arguments that can be used to configure
1012// IndexView.CreateOne and IndexView.CreateMany operations.
1113//
1214// See corresponding setter methods for documentation.
1315type CreateIndexesOptions struct {
1416 CommitQuorum interface {}
15- RawData * bool
17+
18+ // Deprecated: This option is for internal use only and should not be set. It may be changed or removed in any
19+ // release.
20+ Internal optionsutil.Options
1621}
1722
1823// CreateIndexesOptionsBuilder contains options to create indexes. Each option
@@ -120,22 +125,12 @@ func (c *CreateIndexesOptionsBuilder) SetCommitQuorumVotingMembers() *CreateInde
120125 return c
121126}
122127
123- // SetRawData sets the value for the RawData field. If true, it allows the CRUD operations to access timeseries
124- // collections on the bucket-level. This option is only valid for MongoDB versions >= 9.0. The default value is false.
125- func (c * CreateIndexesOptionsBuilder ) SetRawData (rawData bool ) * CreateIndexesOptionsBuilder {
126- c .Opts = append (c .Opts , func (opts * CreateIndexesOptions ) error {
127- opts .RawData = & rawData
128-
129- return nil
130- })
131-
132- return c
133- }
134-
135128// DropIndexesOptions represents arguments that can be used to configure
136129// IndexView.DropOne and IndexView.DropAll operations.
137130type DropIndexesOptions struct {
138- RawData * bool
131+ // Deprecated: This option is for internal use only and should not be set. It may be changed or removed in any
132+ // release.
133+ Internal optionsutil.Options
139134}
140135
141136// DropIndexesOptionsBuilder contains options to configure dropping indexes.
@@ -155,25 +150,16 @@ func (d *DropIndexesOptionsBuilder) List() []func(*DropIndexesOptions) error {
155150 return d .Opts
156151}
157152
158- // SetRawData sets the value for the RawData field. If true, it allows the CRUD operations to access timeseries
159- // collections on the bucket-level. This option is only valid for MongoDB versions >= 9.0. The default value is false.
160- func (d * DropIndexesOptionsBuilder ) SetRawData (rawData bool ) * DropIndexesOptionsBuilder {
161- d .Opts = append (d .Opts , func (opts * DropIndexesOptions ) error {
162- opts .RawData = & rawData
163-
164- return nil
165- })
166-
167- return d
168- }
169-
170153// ListIndexesOptions represents arguments that can be used to configure an
171154// IndexView.List operation.
172155//
173156// See corresponding setter methods for documentation.
174157type ListIndexesOptions struct {
175158 BatchSize * int32
176- RawData * bool
159+
160+ // Deprecated: This option is for internal use only and should not be set. It may be changed or removed in any
161+ // release.
162+ Internal optionsutil.Options
177163}
178164
179165// ListIndexesOptionsBuilder contains options to configure count operations. Each
@@ -205,18 +191,6 @@ func (l *ListIndexesOptionsBuilder) SetBatchSize(i int32) *ListIndexesOptionsBui
205191 return l
206192}
207193
208- // SetRawData sets the value for the RawData field. If true, it allows the CRUD operations to access timeseries
209- // collections on the bucket-level. This option is only valid for MongoDB versions >= 9.0. The default value is false.
210- func (l * ListIndexesOptionsBuilder ) SetRawData (rawData bool ) * ListIndexesOptionsBuilder {
211- l .Opts = append (l .Opts , func (opts * ListIndexesOptions ) error {
212- opts .RawData = & rawData
213-
214- return nil
215- })
216-
217- return l
218- }
219-
220194// IndexOptions represents arguments that can be used to configure a new index
221195// created through the IndexView.CreateOne or IndexView.CreateMany operations.
222196//
0 commit comments