Skip to content

Latest commit

 

History

History
16 lines (13 loc) · 923 Bytes

README.md

File metadata and controls

16 lines (13 loc) · 923 Bytes

Tiny SQL Rewriter

This project is based out of XiaoMi Soar

Components

  • Advisor : This code is gives suggestions on how to improve your SQL query. It does not rewrite the query. The rules are taken from here
  • Rewriter : This code rewrites the SQL query based on a set of Rewrite rules. The rules are taken from here
  • Domain: Contains domain object required by rewriter to interface with underlying database to fetch details like table schema, indexes, column names etc.
  • Catalog API: Contains API interface to interact with underlying database.
  • Catalog MySQL: Contains implementation of Catalog API for MySQL database.

How to run

Run main.go file.