|
|
@@ -0,0 +1,68 @@
|
|
|
+package ports
|
|
|
+
|
|
|
+type QueryByWhereAndOrderByRequest struct {
|
|
|
+ DatabaseID string
|
|
|
+ TablePrefixWithSchema string
|
|
|
+ Version string
|
|
|
+ Select string
|
|
|
+ Where []ColumnCompare
|
|
|
+ OrderBy []string
|
|
|
+ PageNo int32
|
|
|
+ PageSize int32
|
|
|
+}
|
|
|
+
|
|
|
+type CommonQueryRequest struct {
|
|
|
+ DatabaseID string
|
|
|
+ TablePrefixWithSchema string
|
|
|
+ Version string
|
|
|
+ Select string
|
|
|
+ Where []ColumnCompare
|
|
|
+ OrderBy []string
|
|
|
+ Or []ColumnCompare
|
|
|
+ GroupBy []string
|
|
|
+ Join string
|
|
|
+ Having []ColumnCompare
|
|
|
+ PageNo int32
|
|
|
+ PageSize int32
|
|
|
+}
|
|
|
+
|
|
|
+type QueryByKeysRequest struct {
|
|
|
+ DatabaseID string
|
|
|
+ TablePrefixWithSchema string
|
|
|
+ Version string
|
|
|
+ Select string
|
|
|
+ Keys []Key
|
|
|
+ Where []ColumnCompare
|
|
|
+}
|
|
|
+
|
|
|
+type CommonQueryByKeysRequest struct {
|
|
|
+ DatabaseID string
|
|
|
+ TablePrefixWithSchema string
|
|
|
+ Version string
|
|
|
+ Select string
|
|
|
+ Keys []Key
|
|
|
+ Where []ColumnCompare
|
|
|
+ Or []ColumnCompare
|
|
|
+}
|
|
|
+
|
|
|
+type CountWhereRequest struct {
|
|
|
+ DatabaseID string
|
|
|
+ TablePrefixWithSchema string
|
|
|
+ Version string
|
|
|
+ Where []ColumnCompare
|
|
|
+ PageNo int32
|
|
|
+ PageSize int32
|
|
|
+}
|
|
|
+
|
|
|
+type CommonCountRequest struct {
|
|
|
+ DatabaseID string
|
|
|
+ TablePrefixWithSchema string
|
|
|
+ Version string
|
|
|
+ Where []ColumnCompare
|
|
|
+ Or []ColumnCompare
|
|
|
+ GroupBy []string
|
|
|
+ Join string
|
|
|
+ Having []ColumnCompare
|
|
|
+ PageNo int32
|
|
|
+ PageSize int32
|
|
|
+}
|