column reindexation implemented and others
This commit is contained in:
@@ -66,6 +66,10 @@ service TableDefinition {
|
||||
// presentation metadata and may be changed after rows have been stored.
|
||||
rpc SetRowDisplayColumns(SetRowDisplayColumnsRequest) returns (SetRowDisplayColumnsResponse);
|
||||
|
||||
// Replaces the user-managed indexes of an existing dynamic table. Physical
|
||||
// indexes are created or dropped even when rows have already been stored.
|
||||
rpc SetTableIndexes(SetTableIndexesRequest) returns (SetTableIndexesResponse);
|
||||
|
||||
// Replaces the optional user-visible aliases for a fixed-option column.
|
||||
// Stored values remain stable machine values and scripts never depend on labels.
|
||||
rpc SetColumnOptionAliases(SetColumnOptionAliasesRequest) returns (SetColumnOptionAliasesResponse);
|
||||
@@ -529,6 +533,9 @@ message TableDetail {
|
||||
// soft-deleted row. Populated tables are append-only: PutTableDefinition is
|
||||
// no longer available, while AddTableColumns remains available.
|
||||
bool has_data = 12;
|
||||
|
||||
// User-managed single-column indexes. Backend-managed indexes are omitted.
|
||||
repeated string indexes = 13;
|
||||
}
|
||||
|
||||
// Server-owned behavior for one logical column returned in table details.
|
||||
@@ -608,6 +615,23 @@ message SetRowDisplayColumnsResponse {
|
||||
int64 row_version = 3;
|
||||
}
|
||||
|
||||
// Atomically replaces the table's user-managed single-column indexes. Indexes
|
||||
// owned by the backend, including link and navigation indexes, are unchanged.
|
||||
message SetTableIndexesRequest {
|
||||
string profile_name = 1;
|
||||
string table_name = 2;
|
||||
repeated string indexes = 3;
|
||||
// Row version returned by GetProfileDetails when the indexes were read.
|
||||
int64 expected_row_version = 4;
|
||||
}
|
||||
|
||||
message SetTableIndexesResponse {
|
||||
bool success = 1;
|
||||
repeated string indexes = 2;
|
||||
// New row version after the update, or the current version for a no-op.
|
||||
int64 row_version = 3;
|
||||
}
|
||||
|
||||
// One public option name. `value` identifies the option by its current public
|
||||
// alias and `alias` is its desired public alias; stored values remain internal.
|
||||
message OptionValueAlias {
|
||||
|
||||
Reference in New Issue
Block a user