MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / InvokeInsert

Method InvokeInsert

sdks/csharp/src/Table.cs:404–414  ·  view source on GitHub ↗
(IEventContext context, IStructuralReadWrite row)

Source from the content-addressed store, hash-verified

402 conn.RemoteQuery<Row>($"SELECT {RemoteTableName}.* FROM {RemoteTableName} {query}");
403
404 void InvokeInsert(IEventContext context, IStructuralReadWrite row)
405 {
406 try
407 {
408 OnInsertHandler.Invoke((EventContext)context, (Row)row);
409 }
410 catch (Exception e)
411 {
412 Log.Exception(e);
413 }
414 }
415
416 protected virtual void InvokeDelete(IEventContext context, IStructuralReadWrite row) { }
417

Callers

nothing calls this directly

Calls 2

InvokeMethod · 0.45
ExceptionMethod · 0.45

Tested by

no test coverage detected