mirror of
https://github.com/CodePhiliaX/Chat2DB.git
synced 2025-07-31 03:32:43 +08:00
Merge branch 'developing' into team
This commit is contained in:
@ -32,6 +32,11 @@ public enum AiSqlSourceEnum implements BaseEnum<String> {
|
||||
*/
|
||||
CHAT2DBAI("CHAT2DB OPENAI"),
|
||||
|
||||
/**
|
||||
* CLAUDE AI
|
||||
*/
|
||||
CLAUDEAI("CLAUDE AI"),
|
||||
|
||||
;
|
||||
|
||||
final String description;
|
||||
|
@ -74,4 +74,9 @@ public class Operation {
|
||||
* 是否在tab中被打开,y表示打开,n表示未打开
|
||||
*/
|
||||
private String tabOpened;
|
||||
|
||||
/**
|
||||
* operation type
|
||||
*/
|
||||
private String operationType;
|
||||
}
|
||||
|
@ -41,4 +41,9 @@ public class OperationPageQueryParam extends PageQueryParam {
|
||||
* orderBy modify time desc
|
||||
*/
|
||||
private boolean orderByDesc;
|
||||
|
||||
/**
|
||||
* operation type
|
||||
*/
|
||||
private String operationType;
|
||||
}
|
||||
|
@ -49,4 +49,9 @@ public class OperationSavedParam {
|
||||
* 是否在tab中被打开,y表示打开,n表示未打开
|
||||
*/
|
||||
private String tabOpened;
|
||||
|
||||
/**
|
||||
* operation type
|
||||
*/
|
||||
private String operationType;
|
||||
}
|
||||
|
@ -57,4 +57,9 @@ public class OperationUpdateParam {
|
||||
* 是否在tab中被打开,y表示打开,n表示未打开
|
||||
*/
|
||||
private String tabOpened;
|
||||
|
||||
/**
|
||||
* operation type
|
||||
*/
|
||||
private String operationType;
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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.Table;
|
||||
import jakarta.validation.constraints.NotEmpty;
|
||||
@ -19,4 +20,11 @@ public interface ViewService {
|
||||
ListResult<Table> views(@NotEmpty String databaseName, String schemaName);
|
||||
|
||||
|
||||
/**
|
||||
* Querying the details of a view.
|
||||
*
|
||||
* @param databaseName
|
||||
* @return
|
||||
*/
|
||||
DataResult<Table> detail(@NotEmpty String databaseName, String schemaName,String tableName);
|
||||
}
|
||||
|
Reference in New Issue
Block a user