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.
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 Oracle
- func (o *Oracle) AddOracleLogminerlogFile(logFile string) error
- func (o *Oracle) CloseOracleChunkTask(taskName string) error
- func (o *Oracle) EndOracleLogminerStoredProcedure() error
- func (o *Oracle) GetOracleALLRedoLogFile() ([]string, error)
- func (o *Oracle) GetOracleArchivedLogFile(scn string) ([]map[string]string, error)
- func (o *Oracle) GetOracleArchivedLogSCN(scn string) (uint64, error)
- func (o *Oracle) GetOracleCurrentRedoMaxSCN() (uint64, uint64, string, error)
- func (o *Oracle) GetOracleCurrentSnapshotSCN() (uint64, error)
- func (o *Oracle) GetOracleDBCharacterNLSCompCollation() (string, error)
- func (o *Oracle) GetOracleDBCharacterNLSSortCollation() (string, error)
- func (o *Oracle) GetOracleDBCharacterSet() (string, error)
- func (o *Oracle) GetOracleDBName() (string, string, string, error)
- func (o *Oracle) GetOracleDBVersion() (string, error)
- func (o *Oracle) GetOracleDataRowStrings(querySQL string) ([]string, *strset.Set, uint32, error)
- func (o *Oracle) GetOracleDataTotal() (string, error)
- func (o *Oracle) GetOracleExtendedMode() (bool, error)
- func (o *Oracle) GetOracleGlobalName() (string, error)
- func (o *Oracle) GetOracleInstance() ([]map[string]string, error)
- func (o *Oracle) GetOracleMaxActiveSessionCount() ([]map[string]string, error)
- func (o *Oracle) GetOracleMemoryGB() (string, error)
- func (o *Oracle) GetOracleNumCPU() (string, error)
- func (o *Oracle) GetOracleParameters() (string, string, string, string, error)
- func (o *Oracle) GetOraclePartitionTableINFO(schemaName, tableName string) ([]map[string]string, error)
- func (o *Oracle) GetOracleRedoLogFile(scn string) ([]map[string]string, error)
- func (o *Oracle) GetOracleRedoLogSCN(scn string) (uint64, error)
- func (o *Oracle) GetOracleSchemaClusteredTable(schemaName string) ([]string, error)
- func (o *Oracle) GetOracleSchemaCodeObject(schemaName []string) ([]map[string]string, error)
- func (o *Oracle) GetOracleSchemaCollation(schemaName string) (string, error)
- func (o *Oracle) GetOracleSchemaColumnDataDefaultCounts(schemaName []string) ([]map[string]string, error)
- func (o *Oracle) GetOracleSchemaColumnTypeCounts(schemaName []string) ([]map[string]string, error)
- func (o *Oracle) GetOracleSchemaConstraintTypeCounts(schemaName []string) ([]map[string]string, error)
- func (o *Oracle) GetOracleSchemaIndexTypeCounts(schemaName []string) ([]map[string]string, error)
- func (o *Oracle) GetOracleSchemaMaterializedView(schemaName string) ([]string, error)
- func (o *Oracle) GetOracleSchemaMaterializedViewObject(schemaName []string) ([]map[string]string, error)
- func (o *Oracle) GetOracleSchemaObjectTypeCounts(schemaName []string) ([]map[string]string, error)
- func (o *Oracle) GetOracleSchemaOverview(schemaName []string) ([]map[string]string, error)
- func (o *Oracle) GetOracleSchemaPartitionObjectType(schemaName []string) ([]map[string]string, error)
- func (o *Oracle) GetOracleSchemaPartitionTable(schemaName string) ([]string, error)
- func (o *Oracle) GetOracleSchemaPartitionTableCountsOver1024(schemaName []string) ([]map[string]string, error)
- func (o *Oracle) GetOracleSchemaPartitionTypeCounts(schemaName []string) ([]map[string]string, error)
- func (o *Oracle) GetOracleSchemaSubPartitionTypeCounts(schemaName []string) ([]map[string]string, error)
- func (o *Oracle) GetOracleSchemaSynonymObject(schemaName []string) ([]map[string]string, error)
- func (o *Oracle) GetOracleSchemaTable(schemaName string) ([]string, error)
- func (o *Oracle) GetOracleSchemaTableAvgRowLengthTOP(schemaName []string) ([]map[string]string, error)
- func (o *Oracle) GetOracleSchemaTableCheckKey(schemaName string, tableName string) ([]map[string]string, error)
- func (o *Oracle) GetOracleSchemaTableCollation(schemaName, schemaCollation string) (map[string]string, error)
- func (o *Oracle) GetOracleSchemaTableColumn(schemaName string, tableName string, oraCollation bool) ([]map[string]string, error)
- func (o *Oracle) GetOracleSchemaTableColumnComment(schemaName string, tableName string) ([]map[string]string, error)
- func (o *Oracle) GetOracleSchemaTableColumnCountsOver512(schemaName []string) ([]map[string]string, error)
- func (o *Oracle) GetOracleSchemaTableColumnNameLengthOver64(schemaName []string) ([]map[string]string, error)
- func (o *Oracle) GetOracleSchemaTableComment(schemaName string, tableName string) ([]map[string]string, error)
- func (o *Oracle) GetOracleSchemaTableForeignKey(schemaName string, tableName string) ([]map[string]string, error)
- func (o *Oracle) GetOracleSchemaTableIndexCountsOver64(schemaName []string) ([]map[string]string, error)
- func (o *Oracle) GetOracleSchemaTableIndexLengthOver3072(schemaName []string) ([]map[string]string, error)
- func (o *Oracle) GetOracleSchemaTableIndexNameLengthOver64(schemaName []string) ([]map[string]string, error)
- func (o *Oracle) GetOracleSchemaTableNameLengthOver64(schemaName []string) ([]map[string]string, error)
- func (o *Oracle) GetOracleSchemaTableNormalIndex(schemaName string, tableName string) ([]map[string]string, error)
- func (o *Oracle) GetOracleSchemaTableNumberTypeEqual0(schemaName []string) ([]map[string]string, error)
- func (o *Oracle) GetOracleSchemaTablePrimaryKey(schemaName string, tableName string) ([]map[string]string, error)
- func (o *Oracle) GetOracleSchemaTableRowLengthOver6M(schemaName []string) ([]map[string]string, error)
- func (o *Oracle) GetOracleSchemaTableRowsTOP(schemaName []string) ([]map[string]string, error)
- func (o *Oracle) GetOracleSchemaTableSequenceNameLengthOver64(schemaName []string) ([]map[string]string, error)
- func (o *Oracle) GetOracleSchemaTableType(schemaName string) (map[string]string, error)
- func (o *Oracle) GetOracleSchemaTableTypeCounts(schemaName []string) ([]map[string]string, error)
- func (o *Oracle) GetOracleSchemaTableUniqueIndex(schemaName string, tableName string) ([]map[string]string, error)
- func (o *Oracle) GetOracleSchemaTableUniqueKey(schemaName string, tableName string) ([]map[string]string, error)
- func (o *Oracle) GetOracleSchemaTableViewNameLengthOver64(schemaName []string) ([]map[string]string, error)
- func (o *Oracle) GetOracleSchemaTemporaryTable(schemaName string) ([]string, error)
- func (o *Oracle) GetOracleSchemaTemporaryTableTypeCounts(schemaName []string) ([]map[string]string, error)
- func (o *Oracle) GetOracleSchemaViewTypeCounts(schemaName []string) ([]map[string]string, error)
- func (o *Oracle) GetOracleSchemas() ([]string, error)
- func (o *Oracle) GetOracleTableActualRows(oraQuery string) (int64, error)
- func (o *Oracle) GetOracleTableChunksByNUMBER(taskName, numberColName string) ([]map[string]string, error)
- func (o *Oracle) GetOracleTableChunksByRowID(taskName string) ([]map[string]string, error)
- func (o *Oracle) GetOracleTableColumnDistinctValue(schemaName, tableName string, columnList []string) ([]string, error)
- func (o *Oracle) GetOracleTableRowsByStatistics(schemaName, tableName string) (int, error)
- func (o *Oracle) GetOracleTableRowsData(querySQL string, insertBatchSize int) ([]string, []string, error)
- func (o *Oracle) GetOracleUsernameLengthOver64(schemaName []string) ([]map[string]string, error)
- func (o *Oracle) IsNumberColumnTYPE(schemaName, tableName, indexFiledName string) (bool, error)
- func (o *Oracle) IsOraclePartitionTable(schemaName, tableName string) (bool, error)
- func (o *Oracle) StartOracleChunkCreateTask(taskName string) error
- func (o *Oracle) StartOracleCreateChunkByNUMBER(taskName, schemaName, tableName, numberColName string, chunkSize string) error
- func (o *Oracle) StartOracleCreateChunkByRowID(taskName, schemaName, tableName string, chunkSize string) error
- func (o *Oracle) StartOracleLogminerStoredProcedure(scn string) error
- func (o *Oracle) WriteOracleTable(sql string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Oracle ¶
func NewOracleDBEngine ¶
创建 oracle 数据库引擎
func (*Oracle) AddOracleLogminerlogFile ¶
func (*Oracle) CloseOracleChunkTask ¶
func (*Oracle) EndOracleLogminerStoredProcedure ¶
func (*Oracle) GetOracleALLRedoLogFile ¶
func (*Oracle) GetOracleArchivedLogFile ¶
func (*Oracle) GetOracleArchivedLogSCN ¶
func (*Oracle) GetOracleCurrentRedoMaxSCN ¶
func (*Oracle) GetOracleCurrentSnapshotSCN ¶
func (*Oracle) GetOracleDBCharacterNLSCompCollation ¶
func (*Oracle) GetOracleDBCharacterNLSSortCollation ¶
func (*Oracle) GetOracleDBCharacterSet ¶
func (*Oracle) GetOracleDBVersion ¶
func (*Oracle) GetOracleDataRowStrings ¶
func (*Oracle) GetOracleDataTotal ¶
func (*Oracle) GetOracleExtendedMode ¶
func (*Oracle) GetOracleGlobalName ¶
func (*Oracle) GetOracleInstance ¶
func (*Oracle) GetOracleMaxActiveSessionCount ¶
func (*Oracle) GetOracleMemoryGB ¶
func (*Oracle) GetOracleNumCPU ¶
func (*Oracle) GetOracleParameters ¶
func (*Oracle) GetOraclePartitionTableINFO ¶
func (*Oracle) GetOracleRedoLogFile ¶
func (*Oracle) GetOracleRedoLogSCN ¶
func (*Oracle) GetOracleSchemaClusteredTable ¶
func (*Oracle) GetOracleSchemaCodeObject ¶
func (*Oracle) GetOracleSchemaCollation ¶
func (*Oracle) GetOracleSchemaColumnDataDefaultCounts ¶
func (*Oracle) GetOracleSchemaColumnTypeCounts ¶
func (*Oracle) GetOracleSchemaConstraintTypeCounts ¶
func (*Oracle) GetOracleSchemaIndexTypeCounts ¶
func (*Oracle) GetOracleSchemaMaterializedView ¶
func (*Oracle) GetOracleSchemaMaterializedViewObject ¶
func (*Oracle) GetOracleSchemaObjectTypeCounts ¶
func (*Oracle) GetOracleSchemaOverview ¶
func (*Oracle) GetOracleSchemaPartitionObjectType ¶
func (*Oracle) GetOracleSchemaPartitionTable ¶
func (*Oracle) GetOracleSchemaPartitionTableCountsOver1024 ¶
func (*Oracle) GetOracleSchemaPartitionTypeCounts ¶
func (*Oracle) GetOracleSchemaSubPartitionTypeCounts ¶
func (*Oracle) GetOracleSchemaSynonymObject ¶
func (*Oracle) GetOracleSchemaTable ¶
func (*Oracle) GetOracleSchemaTableAvgRowLengthTOP ¶
func (*Oracle) GetOracleSchemaTableCheckKey ¶
func (*Oracle) GetOracleSchemaTableCollation ¶
func (*Oracle) GetOracleSchemaTableColumn ¶
func (*Oracle) GetOracleSchemaTableColumnComment ¶
func (*Oracle) GetOracleSchemaTableColumnCountsOver512 ¶
func (*Oracle) GetOracleSchemaTableColumnNameLengthOver64 ¶
func (*Oracle) GetOracleSchemaTableComment ¶
func (*Oracle) GetOracleSchemaTableForeignKey ¶
func (*Oracle) GetOracleSchemaTableIndexCountsOver64 ¶
func (*Oracle) GetOracleSchemaTableIndexLengthOver3072 ¶
func (*Oracle) GetOracleSchemaTableIndexNameLengthOver64 ¶
func (*Oracle) GetOracleSchemaTableNameLengthOver64 ¶
func (*Oracle) GetOracleSchemaTableNormalIndex ¶
func (*Oracle) GetOracleSchemaTableNumberTypeEqual0 ¶
func (*Oracle) GetOracleSchemaTablePrimaryKey ¶
func (*Oracle) GetOracleSchemaTableRowLengthOver6M ¶
func (*Oracle) GetOracleSchemaTableRowsTOP ¶
func (*Oracle) GetOracleSchemaTableSequenceNameLengthOver64 ¶
func (*Oracle) GetOracleSchemaTableType ¶
func (*Oracle) GetOracleSchemaTableTypeCounts ¶
func (*Oracle) GetOracleSchemaTableUniqueIndex ¶
func (*Oracle) GetOracleSchemaTableUniqueKey ¶
func (*Oracle) GetOracleSchemaTableViewNameLengthOver64 ¶
func (*Oracle) GetOracleSchemaTemporaryTable ¶
func (*Oracle) GetOracleSchemaTemporaryTableTypeCounts ¶
func (*Oracle) GetOracleSchemaViewTypeCounts ¶
func (*Oracle) GetOracleSchemas ¶
func (*Oracle) GetOracleTableActualRows ¶
func (*Oracle) GetOracleTableChunksByNUMBER ¶
func (*Oracle) GetOracleTableChunksByRowID ¶
func (*Oracle) GetOracleTableColumnDistinctValue ¶
func (*Oracle) GetOracleTableRowsByStatistics ¶
func (*Oracle) GetOracleTableRowsData ¶
func (o *Oracle) GetOracleTableRowsData(querySQL string, insertBatchSize int) ([]string, []string, error)
获取表字段名以及行数据 -> 用于 FULL/ALL