Documentation ¶
Overview ¶
Copyright © 2020 Marvin
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright © 2020 Marvin ¶
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright © 2020 Marvin ¶
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright © 2020 Marvin ¶
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright © 2020 Marvin ¶
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- func Query(ctx context.Context, db *sql.DB, querySQL string) ([]string, []map[string]string, error)
- type MySQL
- func (m *MySQL) FilterIntersectionMySQLTable(schemaName string, includeTables []string) ([]string, error)
- func (m *MySQL) GetMySQLDBServerCharacterSet() (string, error)
- func (m *MySQL) GetMySQLDBServerCollation() (string, error)
- func (m *MySQL) GetMySQLDBVersion() (string, error)
- func (m *MySQL) GetMySQLDataRowStrings(querySQL string) ([]string, *strset.Set, uint32, error)
- func (m *MySQL) GetMySQLNormalTable(schemaName string) ([]string, error)
- func (m *MySQL) GetMySQLPartitionTable(schemaName string) ([]string, error)
- func (m *MySQL) GetMySQLPartitionTableDetailINFO(schemaName, tableName string) (string, error)
- func (m *MySQL) GetMySQLPartitionTableINFO(schemaName, tableName string) ([]map[string]string, error)
- func (m *MySQL) GetMySQLTable(schemaName string) ([]string, error)
- func (m *MySQL) GetMySQLTableActualRows(mysqlQuery string) (int64, error)
- func (m *MySQL) GetMySQLTableCharacterSetAndCollation(schemaName, tableName string) (string, string, error)
- func (m *MySQL) GetMySQLTableCheckKey(schemaName, tableName string) ([]map[string]string, error)
- func (m *MySQL) GetMySQLTableColumn(schemaName, tableName string) ([]map[string]string, error)
- func (m *MySQL) GetMySQLTableColumnComment(schemaName, tableName string) ([]map[string]string, error)
- func (m *MySQL) GetMySQLTableComment(schemaName, tableName string) ([]map[string]string, error)
- func (m *MySQL) GetMySQLTableForeignKey(schemaName, tableName string) ([]map[string]string, error)
- func (m *MySQL) GetMySQLTableIndex(schemaName, tableName string, targetDBTye string) ([]map[string]string, error)
- func (m *MySQL) GetMySQLTableName(schemaName, tableName string) ([]string, error)
- func (m *MySQL) GetMySQLTableNormalIndex(schemaName, tableName string, targetDBTye string) ([]map[string]string, error)
- func (m *MySQL) GetMySQLTableOriginDDL(schemaName, tableName string) (string, error)
- func (m *MySQL) GetMySQLTablePrimaryKey(schemaName, tableName string) ([]map[string]string, error)
- func (m *MySQL) GetMySQLTableUniqueKey(schemaName, tableName string) ([]map[string]string, error)
- func (m *MySQL) GetMySQLViewTable(schemaName string) ([]string, error)
- func (m *MySQL) GetTiDBAlterPKValue() (string, error)
- func (m *MySQL) GetTiDBClusteredIndexValue() (string, error)
- func (m *MySQL) IsExistMySQLSchema(schemaName string) (bool, error)
- func (m *MySQL) IsExistMySQLTableCharacterSetAndCollation(schemaName, tableName string) (bool, error)
- func (m *MySQL) IsExistMysqlIndex(schemaName, tableName, indexName string) bool
- func (m *MySQL) IsMySQLPartitionTable(schemaName, tableName string) (bool, error)
- func (m *MySQL) RenameMySQLTableName(schemaName string, tableName string) error
- func (m *MySQL) TruncateMySQLTable(targetSchema string, targetTable string) error
- func (m *MySQL) WriteMySQLTable(sql string, args ...any) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.