mirror of
https://github.com/CodePhiliaX/Chat2DB.git
synced 2025-08-02 21:50:43 +08:00
feat(postgresql): Added query sequence details interface by SequenceDetailQueryRequest
This commit is contained in:
@ -0,0 +1,48 @@
|
||||
package ai.chat2db.server.domain.api.param;
|
||||
|
||||
|
||||
import ai.chat2db.server.tools.base.wrapper.param.QueryParam;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
import java.io.Serial;
|
||||
|
||||
/**
|
||||
* Sequence query param
|
||||
*
|
||||
* @author Sylphy
|
||||
*/
|
||||
@Data
|
||||
@SuperBuilder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class SequenceQueryParam extends QueryParam {
|
||||
@Serial
|
||||
private static final long serialVersionUID = -6918238998725081254L;
|
||||
/**
|
||||
* Corresponding source id stored in the database
|
||||
*/
|
||||
@NotNull
|
||||
private Long dataSourceId;
|
||||
|
||||
/**
|
||||
* Corresponding connection database name
|
||||
*/
|
||||
@NotNull
|
||||
private String databaseName;
|
||||
|
||||
/**
|
||||
* Sequence Name
|
||||
*/
|
||||
private String sequenceName;
|
||||
|
||||
/**
|
||||
* Space name
|
||||
*/
|
||||
private String schemaName;
|
||||
|
||||
private boolean refresh;
|
||||
}
|
@ -2,6 +2,7 @@ package ai.chat2db.server.domain.api.service;
|
||||
|
||||
import ai.chat2db.server.domain.api.param.DropParam;
|
||||
import ai.chat2db.server.domain.api.param.SequencePageQueryParam;
|
||||
import ai.chat2db.server.domain.api.param.SequenceQueryParam;
|
||||
import ai.chat2db.server.domain.api.param.ShowCreateSequenceParam;
|
||||
import ai.chat2db.server.tools.base.wrapper.result.ActionResult;
|
||||
import ai.chat2db.server.tools.base.wrapper.result.DataResult;
|
||||
@ -23,4 +24,6 @@ public interface SequenceService {
|
||||
ListResult<Sql> buildSql(Sequence oldSequence, Sequence newSequence);
|
||||
|
||||
ActionResult drop(DropParam dropParam);
|
||||
|
||||
DataResult<Sequence> query(SequenceQueryParam queryParam);
|
||||
}
|
||||
|
Reference in New Issue
Block a user