sqlsimx

package
v1.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 11, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SimDMLFuncs = []func(sql string, result *connector.Result, conn *connector.Connector) (string, error){
	rmBinOp01,
	rmFields,
}

do not adjust the order!

Functions

func SqlSimX

func SqlSimX(opt string, inputDMLPath string, inputDDLPath string, outputPath string,
	host string, port int, username string, password string, dbname string, specDmlFunc string)

SqlSimX: more powerful, flexible sql simplification tool.

You can only provide one sql statement in `inputDMLPath`!

If you use `dml`, we will try to remove each node in your sql statement, simplify if the result does not change.
If you use `ddl`, we will remove unused tables, columns (only consider `CREATE TABLE` and `INSERT INTO VALUES`, may error).

Then write the simplified sql to `outputPath`.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL