There was an error while loading. Please reload this page.
1 parent 3b539b2 commit c0cdc4bCopy full SHA for c0cdc4b
1 file changed
crates/chat2db-core/src/community.rs
@@ -1064,6 +1064,13 @@ impl Application {
1064
&self,
1065
request: PreviewCommunityRoutineInvocationRequest,
1066
) -> Result<CommunityRoutineInvocationPreview, AppError> {
1067
+ self.native_driver_for_database_type(&request.database_type)
1068
+ .ok_or_else(|| {
1069
+ AppError::invalid(
1070
+ "invalid_community_routine_invocation_request",
1071
+ "routine invocation preview requires a native Rust driver",
1072
+ )
1073
+ })?;
1074
let driver = self
1075
.native_driver_for_community_datasource(&request.datasource_id, &request.database_type)
1076
.await?
0 commit comments