mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 00:56:02 +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,
|
// schemaName: table.schema_name,
|
||||||
objectId: `tables:${table.pure_name}`,
|
objectId: `tables:${table.pure_name}`,
|
||||||
contentHash: table.hash_code_columns ? `${table.hash_code_columns}-${table.hash_code_constraints}` : null,
|
contentHash: table.hash_code_columns ? `${table.hash_code_columns}-${table.hash_code_constraints}` : null,
|
||||||
|
sizeBytes: table.size_bytes,
|
||||||
|
tableRowCount: table.table_row_count,
|
||||||
};
|
};
|
||||||
return {
|
return {
|
||||||
...newTable,
|
...newTable,
|
||||||
|
|||||||
@@ -1,7 +1,9 @@
|
|||||||
module.exports = `
|
module.exports = `
|
||||||
select
|
select
|
||||||
-- owner "schema_name",
|
-- owner "schema_name",
|
||||||
table_name "pure_name"
|
table_name "pure_name",
|
||||||
|
num_rows * avg_row_len "size_bytes",
|
||||||
|
num_rows "table_row_count"
|
||||||
from
|
from
|
||||||
all_tables
|
all_tables
|
||||||
where OWNER='$owner' AND 'tables:' || TABLE_NAME =OBJECT_ID_CONDITION
|
where OWNER='$owner' AND 'tables:' || TABLE_NAME =OBJECT_ID_CONDITION
|
||||||
|
|||||||
Reference in New Issue
Block a user