@@ -10,7 +10,7 @@ use spacetimedb_client_api_messages::websocket::v1::{self as ws_v1};
1010use spacetimedb_datastore:: {
1111 db_metrics:: DB_METRICS , execution_context:: WorkloadType , locking_tx_datastore:: datastore:: MetricsRecorder ,
1212} ;
13- use spacetimedb_execution:: { pipelined:: PipelinedProject , Datastore , DeltaStore , ExecutionParams , Row } ;
13+ use spacetimedb_execution:: { pipelined:: PipelinedProject , Datastore , DeltaStore , Row } ;
1414use spacetimedb_lib:: { metrics:: ExecutionMetrics , Identity } ;
1515use spacetimedb_physical_plan:: plan:: ParamResolver ;
1616use spacetimedb_primitives:: { ColList , TableId } ;
@@ -99,27 +99,6 @@ impl MetricsRecorder for ExecutionCounters {
9999
100100/// Execute subscription query fragments over a view.
101101pub fn execute_plan_for_view < ' p , F > (
102- plan_fragments : impl IntoIterator < Item = & ' p PipelinedProject > ,
103- num_cols : usize ,
104- num_private_cols : usize ,
105- tx : & ( impl Datastore + DeltaStore ) ,
106- rlb_pool : & impl RowListBuilderSource < F > ,
107- ) -> Result < ( F :: List , u64 , ExecutionMetrics ) >
108- where
109- F : BuildableWebsocketFormat ,
110- {
111- execute_plan_for_view_with_params (
112- plan_fragments,
113- num_cols,
114- num_private_cols,
115- tx,
116- & ExecutionParams :: empty ( ) ,
117- rlb_pool,
118- )
119- }
120-
121- /// Execute subscription query fragments over a view with runtime parameters.
122- pub fn execute_plan_for_view_with_params < ' p , F > (
123102 plan_fragments : impl IntoIterator < Item = & ' p PipelinedProject > ,
124103 num_cols : usize ,
125104 num_private_cols : usize ,
@@ -133,7 +112,7 @@ where
133112 build_list_with_executor ( rlb_pool, |metrics, add| {
134113 let col_list = ColList :: from_iter ( num_private_cols..num_cols) ;
135114 for fragment in plan_fragments {
136- fragment. execute_with_params ( tx, params, metrics, & mut |row| match row {
115+ fragment. execute ( tx, params, metrics, & mut |row| match row {
137116 Row :: Ptr ( ptr) => add ( ptr. project_product ( & col_list) ?) ,
138117 Row :: Ref ( val) => add ( val. project_product ( & col_list) ?) ,
139118 } ) ?;
@@ -144,18 +123,6 @@ where
144123
145124/// Execute a subscription query
146125pub fn execute_plan < ' p , F > (
147- plan_fragments : impl IntoIterator < Item = & ' p PipelinedProject > ,
148- tx : & ( impl Datastore + DeltaStore ) ,
149- rlb_pool : & impl RowListBuilderSource < F > ,
150- ) -> Result < ( F :: List , u64 , ExecutionMetrics ) >
151- where
152- F : BuildableWebsocketFormat ,
153- {
154- execute_plan_with_params ( plan_fragments, tx, & ExecutionParams :: empty ( ) , rlb_pool)
155- }
156-
157- /// Execute a subscription query with runtime parameters.
158- pub fn execute_plan_with_params < ' p , F > (
159126 plan_fragments : impl IntoIterator < Item = & ' p PipelinedProject > ,
160127 tx : & ( impl Datastore + DeltaStore ) ,
161128 params : & impl ParamResolver ,
@@ -166,7 +133,7 @@ where
166133{
167134 build_list_with_executor ( rlb_pool, |metrics, add| {
168135 for fragment in plan_fragments {
169- fragment. execute_with_params ( tx, params, metrics, add) ?;
136+ fragment. execute ( tx, params, metrics, add) ?;
170137 }
171138 Ok ( ( ) )
172139 } )
@@ -252,7 +219,7 @@ where
252219 Tx : Datastore + DeltaStore ,
253220 F : BuildableWebsocketFormat ,
254221{
255- execute_plan_for_view_with_params :: < F > ( plan_fragments, num_cols, num_private_cols, tx, params, rlb_pool) . map (
222+ execute_plan_for_view :: < F > ( plan_fragments, num_cols, num_private_cols, tx, params, rlb_pool) . map (
256223 |( rows, num_rows, metrics) | table_update_from_rows ( rows, num_rows, metrics, table_id, table_name, update_type) ,
257224 )
258225}
@@ -270,7 +237,7 @@ pub fn collect_table_update<'p, F>(
270237where
271238 F : BuildableWebsocketFormat ,
272239{
273- execute_plan_with_params :: < F > ( plan_fragments, tx, params, rlb_pool) . map ( |( rows, num_rows, metrics) | {
240+ execute_plan :: < F > ( plan_fragments, tx, params, rlb_pool) . map ( |( rows, num_rows, metrics) | {
274241 table_update_from_rows ( rows, num_rows, metrics, table_id, table_name, update_type)
275242 } )
276243}
0 commit comments