MariaDB is an open-source relational database management system that started as a fork of MySQL. It is widely used as an application database and as a staging area for analytics. Dawiso reads the structure of your MariaDB databases from INFORMATION_SCHEMA: tables, views, columns, stored procedures and functions with their parameters and code, sequences, events, triggers, and foreign keys. Dawiso doesn’t read the data stored in your tables.

Default hierarchy

The chart below shows the organizational structure of MariaDB objects. Objects are represented in green and folders are in yellow. Folders group the objects of one type and are hidden when they are empty.

Dawiso creates one Schema for each database you list in the data source. Each schema holds Tables, Views, Functions, Stored Procedures, Sequences, and Events folders. Tables also hold a Triggers folder for their columns’ triggers.

Object types

Schema

Maps to the MariaDB Schema object type.

Source attributeTarget attribute in Dawiso
schema_nameName

Table

Maps to the MariaDB Table object type.

Source attributeTarget attribute in Dawiso
table_nameName
table_commentScanned Description
table_rowsRow count
data_length + index_length (in MB)Size MB
engineEngine
table_typeSystem Versioned
partition_methodPartition Method
number of partitionsPartition count
partition_expressionPartition Expression
create_timeCreated at
update_timeModified at
table_collationCollation

For system-versioned tables, System Versioned is true.

Table column

Maps to the MariaDB Table Column object type.

Source attributeTarget attribute in Dawiso
column_nameName
column_commentScanned Description
ordinal_positionOrdinal position
is_nullableNullable
data_typeData Type
column_typeData type name
column_keyKey
numeric_scaleNumeric scale
character_maximum_lengthLength
column_defaultDefault value
character_set_nameCharacter Set
collation_nameCollation
is_generatedIs Computed
generation_expressionGeneration Expression
extra (INVISIBLE)Is hidden

View

Maps to the MariaDB View object type.

Source attributeTarget attribute in Dawiso
table_nameName
table_commentScanned Description
view_definitionDefinition (SQL)
check_optionCheck Option
is_updatableIs Updatable
definerDefiner
security_typeSecurity type

MariaDB views have no comment, so Scanned Description is empty for a valid view. If a view references a table, column, or function that no longer exists, MariaDB reports an error in place of the comment, and Scanned Description shows that error text, for example View 'sales.v_orders' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them.

View column

Maps to the MariaDB View Column object type.

Source attributeTarget attribute in Dawiso
column_nameName
column_commentScanned Description
ordinal_positionOrdinal position
is_nullableNullable
data_typeData Type
column_typeData type name
numeric_scaleNumeric scale
character_maximum_lengthLength
column_defaultDefault value
character_set_nameCharacter Set
collation_nameCollation

Function

Maps to the MariaDB Function object type.

Source attributeTarget attribute in Dawiso
routine_nameName
routine_commentScanned Description
data_typeData Type
dtd_identifierData type name
character_maximum_lengthLength
numeric_precisionNumeric precision
numeric_scaleNumeric scale
character_set_nameCharacter Set
collation_nameCollation
routine_definitionDefinition (SQL)
is_deterministicIs deterministic
sql_data_accessSQL Data Access
security_typeSecurity type
sql_modeSQL Mode
definerDefiner
createdCreated at
last_alteredModified at

Function parameter

Maps to the MariaDB Function Parameter object type.

Source attributeTarget attribute in Dawiso
parameter_nameName
parameter_modeMode
ordinal_positionOrdinal position
data_typeData Type
dtd_identifierData type name
character_maximum_lengthLength
numeric_precisionNumeric precision
numeric_scaleNumeric scale
collation_nameCollation
character_set_nameCharacter Set

Procedure

Maps to the MariaDB Procedure object type.

Source attributeTarget attribute in Dawiso
routine_nameName
routine_commentScanned Description
routine_definitionDefinition (SQL)
is_deterministicIs deterministic
sql_data_accessSQL Data Access
security_typeSecurity type
sql_modeSQL Mode
definerDefiner
createdCreated at
last_alteredModified at

Procedure parameter

Maps to the MariaDB Procedure Parameter object type.

Source attributeTarget attribute in Dawiso
parameter_nameName
parameter_modeMode
ordinal_positionOrdinal position
data_typeData Type
dtd_identifierData type name
character_maximum_lengthLength
numeric_precisionNumeric precision
numeric_scaleNumeric scale
collation_nameCollation
character_set_nameCharacter Set

Sequence

Maps to the MariaDB Sequence object type.

Source attributeTarget attribute in Dawiso
table_nameName
start_valueStart Value
minimum_valueMinimum Value
maximum_valueMaximum Value
incrementIncrement
cycle_optionCycle

The sequence values come from INFORMATION_SCHEMA.SEQUENCES, which MariaDB provides from version 11.5. On earlier versions, Dawiso ingests sequences without these values.

Event

Maps to the MariaDB Event object type.

Source attributeTarget attribute in Dawiso
event_nameName
event_commentScanned Description
event_definitionDefinition (SQL)
event_typeEvent Type
interval_value + interval_fieldInterval
statusStatus
startsStarts
endsEnds
definerDefiner
createdCreated at
last_alteredModified at

Trigger

Maps to the MariaDB Trigger object type.

Source attributeTarget attribute in Dawiso
trigger_nameName
action_statementDefinition (SQL)
event_manipulationTrigger Event
action_timingTrigger Timing
action_orderAction Order
definerDefiner
createdCreated at

Triggers are shown under the table they belong to.

Relations

From object typeRelation typeTo object typeNote
Tableforeign key child / foreign key parentTableForeign keys between tables. Read from INFORMATION_SCHEMA.KEY_COLUMN_USAGE.
Table Columnforeign key child / foreign key parentTable ColumnForeign keys between table columns. Read from INFORMATION_SCHEMA.KEY_COLUMN_USAGE.

The table or column that holds the foreign key is the child, and the referenced table or column is the parent. Dawiso creates these relations only when both tables are in the same database.

System objects

Dawiso skips the MariaDB system databases mysql, information_schema, performance_schema, and sys, even if you list them in the data source.