Skip to content

Commit

Permalink
Merge pull request #593 from actiontech/add-field
Browse files Browse the repository at this point in the history
add field to identify table metadata
  • Loading branch information
sjjian authored Jun 14, 2022
2 parents 4d1f9b7 + cf66ad4 commit a671a80
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions sqle/api/controller/v1/instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -1081,6 +1081,7 @@ type TableIndexes struct {

type TableMeta struct {
Name string `json:"name"`
Schema string `json:"schema"`
Columns TableColumns `json:"columns"`
Indexes TableIndexes `json:"indexes"`
CreateTableSQL string `json:"create_table_sql"`
Expand Down
3 changes: 3 additions & 0 deletions sqle/docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -7185,6 +7185,9 @@ var doc = `{
},
"name": {
"type": "string"
},
"schema": {
"type": "string"
}
}
},
Expand Down
3 changes: 3 additions & 0 deletions sqle/docs/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -7169,6 +7169,9 @@
},
"name": {
"type": "string"
},
"schema": {
"type": "string"
}
}
},
Expand Down
2 changes: 2 additions & 0 deletions sqle/docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1799,6 +1799,8 @@ definitions:
type: object
name:
type: string
schema:
type: string
type: object
v1.TableMetaItemHeadResV1:
properties:
Expand Down
2 changes: 2 additions & 0 deletions sqle/driver/driver_analysis.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ type IndexesInfo struct {
}

type TableMetaItem struct {
Name string
Schema string
ColumnsInfo ColumnsInfo
IndexesInfo IndexesInfo
CreateTableSQL string
Expand Down

0 comments on commit a671a80

Please sign in to comment.