clockworklabs/SpacetimeDB · error
datastore_table_row_count() call failed
Error message
datastore_table_row_count() call failed
What it means
Error "datastore_table_row_count() call failed" thrown in clockworklabs/SpacetimeDB.
Source
Thrown at crates/bindings/src/table.rs:132
}
/// Clears the table of all rows.
///
/// Returns the number of rows that were deleted,
/// i.e., the value of [`self.count()`](Table::count) before this call.
fn clear(&self) -> u64 {
sys::datastore_clear(Self::table_id()).expect("datastore_clear() call failed")
}
// Re-integrates the BSATN of the `generated_cols` into `row`.
#[doc(hidden)]
fn integrate_generated_columns(row: &mut Self::Row, generated_cols: &[u8]);
}
#[doc(hidden)]
#[inline]
pub fn count<Tbl: Table>() -> u64 {
sys::datastore_table_row_count(Tbl::table_id()).expect("datastore_table_row_count() call failed")
}
#[doc(hidden)]
pub trait TableInternal: Sized {
const TABLE_NAME: &'static str;
const TABLE_ACCESS: TableAccess = TableAccess::Private;
const UNIQUE_COLUMNS: &'static [u16];
const INDEXES: &'static [IndexDesc<'static>];
const PRIMARY_KEY: Option<u16> = None;
const SEQUENCES: &'static [u16];
const SCHEDULE: Option<ScheduleDesc<'static>> = None;
const IS_EVENT: bool = false;
/// Returns the ID of this table.
fn table_id() -> TableId;
fn get_default_col_values() -> Vec<ColumnDefault>;
}View on GitHub (pinned to 524b4487d9)
When it happens
Trigger: Thrown at crates/bindings/src/table.rs:132 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of clockworklabs/SpacetimeDB@524b4487d9 (2026-08-16).
Data as JSON: /api/errors/3b5b030b002fa4c0.
Report an issue: GitHub.