Show table constraints

This commit is contained in:
Brian Low
2015-12-04 17:14:03 -07:00
parent 4fb24cb229
commit eeb0fdf3a4
8 changed files with 89 additions and 33 deletions

View File

@@ -33,6 +33,7 @@ func SetupRoutes(router *gin.Engine) {
api.GET("/tables/:table/rows", GetTableRows)
api.GET("/tables/:table/info", GetTableInfo)
api.GET("/tables/:table/indexes", GetTableIndexes)
api.GET("/tables/:table/constraints", GetTableConstraints)
api.GET("/query", RunQuery)
api.POST("/query", RunQuery)
api.GET("/explain", ExplainQuery)