feat(mysql): manage and edit MySQL events
This commit is contained in:
1 parent
701f188e45
commit
d8bc5153d2
35 files changed
+981
-27
No files matched your search
@@ -351,6 +351,22 @@ pub async fn get_object_source(
|
||||
Ok(Json(result))
|
||||
}
|
||||
|
||||
pub async fn get_event_info(
|
||||
State(state): State<Arc<WebState>>,
|
||||
Query(q): Query<SchemaQuery>,
|
||||
) -> Result<Json<dbx_core::db::MysqlEventInfo>, AppError> {
|
||||
let result = dbx_core::schema::get_event_info_core(
|
||||
&state.app,
|
||||
&q.connection_id,
|
||||
q.database.as_deref().unwrap_or(""),
|
||||
q.schema.as_deref().unwrap_or(""),
|
||||
q.table.as_deref().unwrap_or(""),
|
||||
)
|
||||
.await
|
||||
.map_err(AppError::from)?;
|
||||
Ok(Json(result))
|
||||
}
|
||||
|
||||
pub async fn get_custom_type_details(
|
||||
State(state): State<Arc<WebState>>,
|
||||
Query(q): Query<SchemaQuery>,
|
||||
|
||||
Reference in new issue
Block a user