mirror of
https://github.com/CodePhiliaX/Chat2DB.git
synced 2025-07-31 03:32:43 +08:00
support view trigger producer function
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
package ai.chat2db.server.domain.api.service;
|
||||
|
||||
import ai.chat2db.server.tools.base.wrapper.result.DataResult;
|
||||
import ai.chat2db.server.tools.base.wrapper.result.ListResult;
|
||||
import ai.chat2db.spi.model.Function;
|
||||
import jakarta.validation.constraints.NotEmpty;
|
||||
@ -18,5 +19,12 @@ public interface FunctionService {
|
||||
*/
|
||||
ListResult<Function> functions(@NotEmpty String databaseName, String schemaName);
|
||||
|
||||
|
||||
/**
|
||||
* Querying function information.
|
||||
* @param databaseName
|
||||
* @param schemaName
|
||||
* @param functionName
|
||||
* @return
|
||||
*/
|
||||
DataResult<Function> detail(String databaseName, String schemaName, String functionName);
|
||||
}
|
||||
|
@ -1,5 +1,6 @@
|
||||
package ai.chat2db.server.domain.api.service;
|
||||
|
||||
import ai.chat2db.server.tools.base.wrapper.result.DataResult;
|
||||
import ai.chat2db.server.tools.base.wrapper.result.ListResult;
|
||||
import ai.chat2db.spi.model.Procedure;
|
||||
import jakarta.validation.constraints.NotEmpty;
|
||||
@ -13,4 +14,13 @@ public interface ProcedureService {
|
||||
* @return
|
||||
*/
|
||||
ListResult<Procedure> procedures(@NotEmpty String databaseName, String schemaName);
|
||||
|
||||
/**
|
||||
* Querying procedure information.
|
||||
* @param databaseName
|
||||
* @param schemaName
|
||||
* @param procedureName
|
||||
* @return
|
||||
*/
|
||||
DataResult<Procedure> detail(String databaseName, String schemaName, String procedureName);
|
||||
}
|
||||
|
@ -1,5 +1,6 @@
|
||||
package ai.chat2db.server.domain.api.service;
|
||||
|
||||
import ai.chat2db.server.tools.base.wrapper.result.DataResult;
|
||||
import ai.chat2db.server.tools.base.wrapper.result.ListResult;
|
||||
import ai.chat2db.spi.model.Trigger;
|
||||
import jakarta.validation.constraints.NotEmpty;
|
||||
@ -14,4 +15,12 @@ public interface TriggerService {
|
||||
*/
|
||||
ListResult<Trigger> triggers(@NotEmpty String databaseName, String schemaName);
|
||||
|
||||
/**
|
||||
* Querying trigger information.
|
||||
* @param databaseName
|
||||
* @param schemaName
|
||||
* @param triggerName
|
||||
* @return
|
||||
*/
|
||||
DataResult<Trigger> detail(String databaseName, String schemaName, String triggerName);
|
||||
}
|
||||
|
Reference in New Issue
Block a user