File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ func Example_createTable() {
8080 ),
8181 options .WithIndex ("idx_series_title" ,
8282 options .WithIndexColumns ("title" ),
83- options .WithIndexType (options .IndexTypeGlobalAsync ),
83+ options .WithIndexType (options .GlobalAsyncIndex () ),
8484 ),
8585 )
8686 },
@@ -166,7 +166,7 @@ func Example_alterTable() {
166166 options .WithAddIndex ("idx_series_series_id" ,
167167 options .WithIndexColumns ("series_id" ),
168168 options .WithDataColumns ("title" ),
169- options .WithIndexType (options .IndexTypeGlobalAsync ),
169+ options .WithIndexType (options .GlobalIndex () ),
170170 ),
171171 options .WithDropIndex ("idx_series_title" ),
172172 options .WithAlterAttribute ("hello" , "world" ),
Original file line number Diff line number Diff line change @@ -289,6 +289,14 @@ func (t IndexType) ApplyIndexOption(d *indexDesc) {
289289 }
290290}
291291
292+ func GlobalIndex () IndexType {
293+ return IndexTypeGlobal
294+ }
295+
296+ func GlobalAsyncIndex () IndexType {
297+ return IndexTypeGlobalAsync
298+ }
299+
292300type PartitioningMode byte
293301
294302const (
You can’t perform that action at this time.
0 commit comments