mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-17 22:36:01 +00:00
table rows, table size in Oracle
This commit is contained in:
@@ -131,6 +131,8 @@ class Analyser extends DatabaseAnalyser {
|
||||
// schemaName: table.schema_name,
|
||||
objectId: `tables:${table.pure_name}`,
|
||||
contentHash: table.hash_code_columns ? `${table.hash_code_columns}-${table.hash_code_constraints}` : null,
|
||||
sizeBytes: table.size_bytes,
|
||||
tableRowCount: table.table_row_count,
|
||||
};
|
||||
return {
|
||||
...newTable,
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
module.exports = `
|
||||
select
|
||||
-- owner "schema_name",
|
||||
table_name "pure_name"
|
||||
table_name "pure_name",
|
||||
num_rows * avg_row_len "size_bytes",
|
||||
num_rows "table_row_count"
|
||||
from
|
||||
all_tables
|
||||
where OWNER='$owner' AND 'tables:' || TABLE_NAME =OBJECT_ID_CONDITION
|
||||
|
||||
Reference in New Issue
Block a user