Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
40f239e
table -> accessor: rust
Shubham8287 Feb 11, 2026
3b3b287
exlude test-app
Shubham8287 Feb 11, 2026
055d111
ts: name -> accessor
Shubham8287 Feb 11, 2026
3deab9d
Revert "ts: name -> accessor"
Shubham8287 Feb 11, 2026
f14234d
indexarg to accessor
Shubham8287 Feb 11, 2026
99897ab
llm docs update
Shubham8287 Feb 11, 2026
1cede00
added index name arg
Shubham8287 Feb 11, 2026
5b46a44
fix test
Shubham8287 Feb 11, 2026
9aa1cfb
Merge branch 'master' into shub/table-name-to-accessor
Shubham8287 Feb 11, 2026
076a026
define name -> accessor in views, reducer and table
Shubham8287 Feb 11, 2026
f47c1ff
ui tests
Shubham8287 Feb 11, 2026
4462684
views accessor
Shubham8287 Feb 11, 2026
c2f9ae7
Merge branch 'master' into shub/table-name-to-accessor
Shubham8287 Feb 11, 2026
ee62ea2
insta
Shubham8287 Feb 11, 2026
3f93250
Merge branch 'master' into shub/table-name-to-accessor
Shubham8287 Feb 12, 2026
80e950e
explicit names macro
Shubham8287 Feb 12, 2026
616f22b
index fix
Shubham8287 Feb 12, 2026
b78f3ca
Merge branch 'master' into shub/table-name-to-accessor
Shubham8287 Feb 12, 2026
468698d
fix cargo.toml
Shubham8287 Feb 12, 2026
973a7dd
commentary for index
Shubham8287 Feb 12, 2026
ed568f9
insta tests
Shubham8287 Feb 12, 2026
c899270
fix index arg
Shubham8287 Feb 12, 2026
c533f0f
fix smoketest
Shubham8287 Feb 12, 2026
d1f208a
fix typos
Shubham8287 Feb 12, 2026
3651538
Merge branch 'master' into shub/table-name-to-accessor
Shubham8287 Feb 12, 2026
ae8c325
stupid insta test
Shubham8287 Feb 12, 2026
c6a194d
generate ts module def
Shubham8287 Feb 12, 2026
f287d0f
fix test
Shubham8287 Feb 12, 2026
9a7a9cc
remove from RawIndexDefV10
Shubham8287 Feb 12, 2026
db82a7c
use sourceName as accessorName in ts for now
Shubham8287 Feb 12, 2026
639ea21
fmt
Shubham8287 Feb 12, 2026
0644ebf
insta tests
Shubham8287 Feb 12, 2026
2f9abc9
Merge branch 'master' into shub/table-name-to-accessor
Shubham8287 Feb 13, 2026
4ddf6ac
not modify RawINdeXDefV10
Shubham8287 Feb 13, 2026
2cdc079
Merge branch 'master' into shub/table-name-to-accessor
Shubham8287 Feb 13, 2026
901ee64
veiw name to accessor
Shubham8287 Feb 13, 2026
cd95adc
template bindings
Shubham8287 Feb 13, 2026
a2cd7a2
fix index accessor
Shubham8287 Feb 13, 2026
24fbf54
doc update
Shubham8287 Feb 13, 2026
dbefb0d
csharp autogen
Shubham8287 Feb 13, 2026
3eaca93
autogen chsharp
Shubham8287 Feb 13, 2026
4329313
Updated C# regression tests with new index names
rekhoff Feb 13, 2026
7c51205
Updated Blackholio Unity demo with new index names
rekhoff Feb 13, 2026
55dfedf
Updated C# republishing regression test bindings
rekhoff Feb 13, 2026
29da61e
Merge remote-tracking branch 'origin/master' into shub/table-name-to-…
clockwork-labs-bot Feb 13, 2026
a7ff6f8
Merge origin/master into shub/table-name-to-accessor
Feb 14, 2026
19f1b3e
Merge origin/master into shub/table-name-to-accessor
Feb 16, 2026
0d71487
merge conflict
Shubham8287 Feb 16, 2026
698f299
remove index canonical name
Shubham8287 Feb 16, 2026
34f4a2b
lint
Shubham8287 Feb 16, 2026
02c685f
more lint
Shubham8287 Feb 16, 2026
a06b720
add alias field in schema && accesor in Defs
Shubham8287 Feb 16, 2026
c6acc13
Resolve both accessor and canonical names in sql
joshua-spacetime Feb 16, 2026
11a1b27
Add system tables to table, column, and index accessor name mappings
joshua-spacetime Feb 16, 2026
34b417b
Resolve SQL table names using st_table_accessor
joshua-spacetime Feb 16, 2026
75b8a46
Resolve SQL column names using st_column_accessor
joshua-spacetime Feb 17, 2026
096593e
Insert into accessor system tables
joshua-spacetime Feb 17, 2026
ec752e8
Resolve query builder and view accessor names
joshua-spacetime Feb 17, 2026
1a38829
Merge remote-tracking branch 'origin/master' into shub/alias
Shubham8287 Feb 17, 2026
17fe27d
disable smoketests
Shubham8287 Feb 17, 2026
fb2c9a3
index_name_or_alias
Shubham8287 Feb 17, 2026
277bd0d
uncomment assets
Shubham8287 Feb 17, 2026
d6eadc8
lint
Shubham8287 Feb 17, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions crates/bench/src/spacetime_raw.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ impl BenchDatabase for SpacetimeRaw {
index_algorithm: IndexAlgorithm::BTree(BTreeAlgorithm {
columns: ColId(0).into(),
}),
alias: None,
},
true,
)?;
Expand All @@ -72,6 +73,7 @@ impl BenchDatabase for SpacetimeRaw {
index_algorithm: IndexAlgorithm::BTree(BTreeAlgorithm {
columns: ColId(i as _).into(),
}),
alias: None,
},
false,
)?;
Expand Down
3 changes: 1 addition & 2 deletions crates/core/src/sql/ast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -492,9 +492,8 @@ impl<T> Deref for SchemaViewer<'_, T> {

impl<T: StateView> SchemaView for SchemaViewer<'_, T> {
fn table_id(&self, name: &str) -> Option<TableId> {
// Get the schema from the in-memory state instead of fetching from the database for speed
self.tx
.table_id_from_name(name)
.table_id_from_name_or_alias(name)
.ok()
.flatten()
.and_then(|table_id| self.schema_for_table(table_id))
Expand Down
3 changes: 3 additions & 0 deletions crates/core/src/vm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -682,6 +682,7 @@ pub(crate) mod tests {
col_name: Identifier::new(element.name.unwrap()).unwrap(),
col_type: element.algebraic_type,
col_pos: ColId(i as _),
alias: None,
})
.collect();

Expand All @@ -700,6 +701,7 @@ pub(crate) mod tests {
None,
None,
false,
None,
),
)?;
let schema = db.schema_for_table_mut(tx, table_id)?;
Expand Down Expand Up @@ -861,6 +863,7 @@ pub(crate) mod tests {
index_algorithm: IndexAlgorithm::BTree(BTreeAlgorithm {
columns: columns.clone(),
}),
alias: None,
};
let index_id = with_auto_commit(&db, |tx| db.create_index(tx, index, is_unique))?;

Expand Down
2 changes: 1 addition & 1 deletion crates/datastore/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ thin-vec.workspace = true
unindexed_iter_by_col_range_warn = []
default = ["unindexed_iter_by_col_range_warn"]
# Enable test helpers and utils
test = ["spacetimedb-commitlog/test"]
test = ["spacetimedb-commitlog/test", "spacetimedb-schema/test"]

[dev-dependencies]
spacetimedb-lib = { path = "../lib", features = ["proptest"] }
Expand Down
22 changes: 18 additions & 4 deletions crates/datastore/src/locking_tx_datastore/committed_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,10 @@ use crate::{
use crate::{
locking_tx_datastore::ViewCallInfo,
system_tables::{
ST_CONNECTION_CREDENTIALS_ID, ST_CONNECTION_CREDENTIALS_IDX, ST_EVENT_TABLE_ID, ST_EVENT_TABLE_IDX,
ST_VIEW_COLUMN_ID, ST_VIEW_COLUMN_IDX, ST_VIEW_ID, ST_VIEW_IDX, ST_VIEW_PARAM_ID, ST_VIEW_PARAM_IDX,
ST_VIEW_SUB_ID, ST_VIEW_SUB_IDX,
ST_COLUMN_ACCESSOR_ID, ST_COLUMN_ACCESSOR_IDX, ST_CONNECTION_CREDENTIALS_ID, ST_CONNECTION_CREDENTIALS_IDX,
ST_EVENT_TABLE_ID, ST_EVENT_TABLE_IDX, ST_INDEX_ACCESSOR_ID, ST_INDEX_ACCESSOR_IDX, ST_TABLE_ACCESSOR_ID,
ST_TABLE_ACCESSOR_IDX, ST_VIEW_COLUMN_ID, ST_VIEW_COLUMN_IDX, ST_VIEW_ID, ST_VIEW_IDX, ST_VIEW_PARAM_ID,
ST_VIEW_PARAM_IDX, ST_VIEW_SUB_ID, ST_VIEW_SUB_IDX,
},
};
use anyhow::anyhow;
Expand Down Expand Up @@ -473,6 +474,9 @@ impl CommittedState {
self.create_table(ST_VIEW_ARG_ID, schemas[ST_VIEW_ARG_IDX].clone());

self.create_table(ST_EVENT_TABLE_ID, schemas[ST_EVENT_TABLE_IDX].clone());
self.create_table(ST_TABLE_ACCESSOR_ID, schemas[ST_TABLE_ACCESSOR_IDX].clone());
self.create_table(ST_INDEX_ACCESSOR_ID, schemas[ST_INDEX_ACCESSOR_IDX].clone());
self.create_table(ST_COLUMN_ACCESSOR_ID, schemas[ST_COLUMN_ACCESSOR_IDX].clone());

// Insert the sequences into `st_sequences`
let (st_sequences, blob_store, pool) =
Expand Down Expand Up @@ -763,6 +767,8 @@ impl CommittedState {
///
/// The `row_ptr` is a pointer to `row`.
fn st_column_changed(&mut self, table_id: TableId) -> Result<()> {
let table_name = self.find_st_table_row(table_id)?.table_name;

// We're replaying and we don't have unique constraints yet.
// Due to replay handling all inserts first and deletes after,
// when processing `st_column` insert/deletes,
Expand All @@ -773,7 +779,15 @@ impl CommittedState {
// so filter only the non-ignored columns.
let mut columns = iter_st_column_for_table(self, &table_id.into())?
.filter(|row_ref| !self.replay_columns_to_ignore.contains(&row_ref.pointer()))
.map(|row_ref| StColumnRow::try_from(row_ref).map(Into::into))
.map(|row_ref| {
let row = StColumnRow::try_from(row_ref)?;
let mut column_schema = ColumnSchema::from(row);
let alias = self
.find_st_column_accessor_row(table_name.as_ref(), &column_schema.col_name)?
.map(|row| row.accessor_name);
column_schema.alias = alias;
Ok(column_schema)
})
.collect::<Result<Vec<_>>>()?;

// Columns in `st_column` are not in general sorted by their `col_pos`,
Expand Down
53 changes: 45 additions & 8 deletions crates/datastore/src/locking_tx_datastore/datastore.rs
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@ impl MutTxDatastore for Locking {
}

fn table_id_from_name_mut_tx(&self, tx: &Self::MutTx, table_name: &str) -> Result<Option<TableId>> {
tx.table_id_from_name(table_name)
tx.table_id_from_name_or_alias(table_name)
}

fn table_id_exists_mut_tx(&self, tx: &Self::MutTx, table_id: &TableId) -> bool {
Expand All @@ -556,7 +556,7 @@ impl MutTxDatastore for Locking {
}

fn index_id_from_name_mut_tx(&self, tx: &Self::MutTx, index_name: &str) -> Result<Option<IndexId>> {
tx.index_id_from_name(index_name)
tx.index_id_from_name_or_alias(index_name)
}

fn get_next_sequence_value_mut_tx(&self, tx: &mut Self::MutTx, seq_id: SequenceId) -> Result<i128> {
Expand Down Expand Up @@ -1280,13 +1280,14 @@ mod tests {
system_tables, StColumnRow, StConnectionCredentialsFields, StConstraintData, StConstraintFields,
StConstraintRow, StEventTableFields, StIndexAlgorithm, StIndexFields, StIndexRow, StRowLevelSecurityFields,
StScheduledFields, StSequenceFields, StSequenceRow, StTableRow, StVarFields, StViewArgFields, StViewFields,
ST_CLIENT_ID, ST_CLIENT_NAME, ST_COLUMN_ID, ST_COLUMN_NAME, ST_CONNECTION_CREDENTIALS_ID,
ST_CONNECTION_CREDENTIALS_NAME, ST_CONSTRAINT_ID, ST_CONSTRAINT_NAME, ST_EVENT_TABLE_ID, ST_EVENT_TABLE_NAME,
ST_INDEX_ID, ST_INDEX_NAME, ST_MODULE_NAME, ST_RESERVED_SEQUENCE_RANGE, ST_ROW_LEVEL_SECURITY_ID,
ST_CLIENT_ID, ST_CLIENT_NAME, ST_COLUMN_ACCESSOR_ID, ST_COLUMN_ACCESSOR_NAME, ST_COLUMN_ID, ST_COLUMN_NAME,
ST_CONNECTION_CREDENTIALS_ID, ST_CONNECTION_CREDENTIALS_NAME, ST_CONSTRAINT_ID, ST_CONSTRAINT_NAME,
ST_EVENT_TABLE_ID, ST_EVENT_TABLE_NAME, ST_INDEX_ACCESSOR_ID, ST_INDEX_ACCESSOR_NAME, ST_INDEX_ID,
ST_INDEX_NAME, ST_MODULE_NAME, ST_RESERVED_SEQUENCE_RANGE, ST_ROW_LEVEL_SECURITY_ID,
ST_ROW_LEVEL_SECURITY_NAME, ST_SCHEDULED_ID, ST_SCHEDULED_NAME, ST_SEQUENCE_ID, ST_SEQUENCE_NAME,
ST_TABLE_NAME, ST_VAR_ID, ST_VAR_NAME, ST_VIEW_ARG_ID, ST_VIEW_ARG_NAME, ST_VIEW_COLUMN_ID,
ST_VIEW_COLUMN_NAME, ST_VIEW_ID, ST_VIEW_NAME, ST_VIEW_PARAM_ID, ST_VIEW_PARAM_NAME, ST_VIEW_SUB_ID,
ST_VIEW_SUB_NAME,
ST_TABLE_ACCESSOR_ID, ST_TABLE_ACCESSOR_NAME, ST_TABLE_NAME, ST_VAR_ID, ST_VAR_NAME, ST_VIEW_ARG_ID,
ST_VIEW_ARG_NAME, ST_VIEW_COLUMN_ID, ST_VIEW_COLUMN_NAME, ST_VIEW_ID, ST_VIEW_NAME, ST_VIEW_PARAM_ID,
ST_VIEW_PARAM_NAME, ST_VIEW_SUB_ID, ST_VIEW_SUB_NAME,
};
use crate::traits::{IsolationLevel, MutTx};
use crate::Result;
Expand All @@ -1312,6 +1313,7 @@ mod tests {
columns_to_row_type, ColumnSchema, ConstraintSchema, IndexSchema, RowLevelSecuritySchema, ScheduleSchema,
SequenceSchema,
};
use spacetimedb_schema::table_name::TableName;

/// For the first user-created table, sequences in the system tables start
/// from this value.
Expand Down Expand Up @@ -1485,6 +1487,7 @@ mod tests {
col_pos: value.pos.into(),
col_name: Identifier::for_test(value.name),
col_type: value.ty,
alias: None,
}
}
}
Expand Down Expand Up @@ -1616,6 +1619,7 @@ mod tests {
schedule,
pk,
false,
None,
)
}

Expand Down Expand Up @@ -1749,6 +1753,9 @@ mod tests {
TableRow { id: ST_VIEW_SUB_ID.into(), name: ST_VIEW_SUB_NAME, ty: StTableType::System, access: StAccess::Public, primary_key: None },
TableRow { id: ST_VIEW_ARG_ID.into(), name: ST_VIEW_ARG_NAME, ty: StTableType::System, access: StAccess::Public, primary_key: Some(StViewArgFields::Id.into()) },
TableRow { id: ST_EVENT_TABLE_ID.into(), name: ST_EVENT_TABLE_NAME, ty: StTableType::System, access: StAccess::Public, primary_key: Some(StEventTableFields::TableId.into()) },
TableRow { id: ST_TABLE_ACCESSOR_ID.into(), name: ST_TABLE_ACCESSOR_NAME, ty: StTableType::System, access: StAccess::Public, primary_key: None },
TableRow { id: ST_INDEX_ACCESSOR_ID.into(), name: ST_INDEX_ACCESSOR_NAME, ty: StTableType::System, access: StAccess::Public, primary_key: None },
TableRow { id: ST_COLUMN_ACCESSOR_ID.into(), name: ST_COLUMN_ACCESSOR_NAME, ty: StTableType::System, access: StAccess::Public, primary_key: None },

]));
#[rustfmt::skip]
Expand Down Expand Up @@ -1836,6 +1843,16 @@ mod tests {
ColRow { table: ST_VIEW_ARG_ID.into(), pos: 1, name: "bytes", ty: AlgebraicType::bytes() },

ColRow { table: ST_EVENT_TABLE_ID.into(), pos: 0, name: "table_id", ty: TableId::get_type() },

ColRow { table: ST_TABLE_ACCESSOR_ID.into(), pos: 0, name: "table_name", ty: AlgebraicType::String },
ColRow { table: ST_TABLE_ACCESSOR_ID.into(), pos: 1, name: "accessor_name", ty: AlgebraicType::String },

ColRow { table: ST_INDEX_ACCESSOR_ID.into(), pos: 0, name: "index_name", ty: AlgebraicType::String },
ColRow { table: ST_INDEX_ACCESSOR_ID.into(), pos: 1, name: "accessor_name", ty: AlgebraicType::String },

ColRow { table: ST_COLUMN_ACCESSOR_ID.into(), pos: 0, name: "table_name", ty: AlgebraicType::String },
ColRow { table: ST_COLUMN_ACCESSOR_ID.into(), pos: 1, name: "col_name", ty: AlgebraicType::String },
ColRow { table: ST_COLUMN_ACCESSOR_ID.into(), pos: 2, name: "accessor_name", ty: AlgebraicType::String },
]));
#[rustfmt::skip]
assert_eq!(query.scan_st_indexes()?, map_array([
Expand All @@ -1862,6 +1879,12 @@ mod tests {
IndexRow { id: 21, table: ST_VIEW_ARG_ID.into(), col: col(0), name: "st_view_arg_id_idx_btree", },
IndexRow { id: 22, table: ST_VIEW_ARG_ID.into(), col: col(1), name: "st_view_arg_bytes_idx_btree", },
IndexRow { id: 23, table: ST_EVENT_TABLE_ID.into(), col: col(0), name: "st_event_table_table_id_idx_btree", },
IndexRow { id: 24, table: ST_TABLE_ACCESSOR_ID.into(), col: col(0), name: "st_table_accessor_table_name_idx_btree", },
IndexRow { id: 25, table: ST_TABLE_ACCESSOR_ID.into(), col: col(1), name: "st_table_accessor_accessor_name_idx_btree", },
IndexRow { id: 26, table: ST_INDEX_ACCESSOR_ID.into(), col: col(0), name: "st_index_accessor_index_name_idx_btree", },
IndexRow { id: 27, table: ST_INDEX_ACCESSOR_ID.into(), col: col(1), name: "st_index_accessor_accessor_name_idx_btree", },
IndexRow { id: 28, table: ST_COLUMN_ACCESSOR_ID.into(), col: col_list![0, 1], name: "st_column_accessor_table_name_col_name_idx_btree", },
IndexRow { id: 29, table: ST_COLUMN_ACCESSOR_ID.into(), col: col_list![0, 2], name: "st_column_accessor_table_name_accessor_name_idx_btree", },
]));
let start = ST_RESERVED_SEQUENCE_RANGE as i128 + 1;
#[rustfmt::skip]
Expand Down Expand Up @@ -1901,6 +1924,12 @@ mod tests {
ConstraintRow { constraint_id: 17, table_id: ST_VIEW_ARG_ID.into(), unique_columns: col(0), constraint_name: "st_view_arg_id_key", },
ConstraintRow { constraint_id: 18, table_id: ST_VIEW_ARG_ID.into(), unique_columns: col(1), constraint_name: "st_view_arg_bytes_key", },
ConstraintRow { constraint_id: 19, table_id: ST_EVENT_TABLE_ID.into(), unique_columns: col(0), constraint_name: "st_event_table_table_id_key", },
ConstraintRow { constraint_id: 20, table_id: ST_TABLE_ACCESSOR_ID.into(), unique_columns: col(0), constraint_name: "st_table_accessor_table_name_key", },
ConstraintRow { constraint_id: 21, table_id: ST_TABLE_ACCESSOR_ID.into(), unique_columns: col(1), constraint_name: "st_table_accessor_accessor_name_key", },
ConstraintRow { constraint_id: 22, table_id: ST_INDEX_ACCESSOR_ID.into(), unique_columns: col(0), constraint_name: "st_index_accessor_index_name_key", },
ConstraintRow { constraint_id: 23, table_id: ST_INDEX_ACCESSOR_ID.into(), unique_columns: col(1), constraint_name: "st_index_accessor_accessor_name_key", },
ConstraintRow { constraint_id: 24, table_id: ST_COLUMN_ACCESSOR_ID.into(), unique_columns: col_list![0, 1], constraint_name: "st_column_accessor_table_name_col_name_key", },
ConstraintRow { constraint_id: 25, table_id: ST_COLUMN_ACCESSOR_ID.into(), unique_columns: col_list![0, 2], constraint_name: "st_column_accessor_table_name_accessor_name_key", },
]));

// Verify we get back the tables correctly with the proper ids...
Expand Down Expand Up @@ -2107,6 +2136,7 @@ mod tests {
table_id,
index_name: "Foo_id_idx_btree".into(),
index_algorithm: BTreeAlgorithm::from(0).into(),
alias: None,
},
true,
)?;
Expand Down Expand Up @@ -2327,6 +2357,12 @@ mod tests {
IndexRow { id: 21, table: ST_VIEW_ARG_ID.into(), col: col(0), name: "st_view_arg_id_idx_btree", },
IndexRow { id: 22, table: ST_VIEW_ARG_ID.into(), col: col(1), name: "st_view_arg_bytes_idx_btree", },
IndexRow { id: 23, table: ST_EVENT_TABLE_ID.into(), col: col(0), name: "st_event_table_table_id_idx_btree", },
IndexRow { id: 24, table: ST_TABLE_ACCESSOR_ID.into(), col: col(0), name: "st_table_accessor_table_name_idx_btree", },
IndexRow { id: 25, table: ST_TABLE_ACCESSOR_ID.into(), col: col(1), name: "st_table_accessor_accessor_name_idx_btree", },
IndexRow { id: 26, table: ST_INDEX_ACCESSOR_ID.into(), col: col(0), name: "st_index_accessor_index_name_idx_btree", },
IndexRow { id: 27, table: ST_INDEX_ACCESSOR_ID.into(), col: col(1), name: "st_index_accessor_accessor_name_idx_btree", },
IndexRow { id: 28, table: ST_COLUMN_ACCESSOR_ID.into(), col: col_list![0, 1], name: "st_column_accessor_table_name_col_name_idx_btree", },
IndexRow { id: 29, table: ST_COLUMN_ACCESSOR_ID.into(), col: col_list![0, 2], name: "st_column_accessor_table_name_accessor_name_idx_btree", },
IndexRow { id: seq_start, table: FIRST_NON_SYSTEM_ID, col: col(0), name: "Foo_id_idx_btree", },
IndexRow { id: seq_start + 1, table: FIRST_NON_SYSTEM_ID, col: col(1), name: "Foo_name_idx_btree", },
IndexRow { id: seq_start + 2, table: FIRST_NON_SYSTEM_ID, col: col(2), name: "Foo_age_idx_btree", },
Expand All @@ -2348,6 +2384,7 @@ mod tests {
table_id,
index_name: "Foo_age_idx_btree".into(),
index_algorithm: BTreeAlgorithm::from(2).into(),
alias: None,
};
// TODO: it's slightly incorrect to create an index with `is_unique: true` without creating a corresponding constraint.
// But the `Table` crate allows it for now.
Expand Down
Loading
Loading