MariaDB
Official · maintained by Marmotmarmotdata/mariadb Discover databases, tables, views and sequences from MariaDB servers
The MariaDB plugin discovers a database and its tables, views and sequences from a MariaDB server. It captures column information (including invisible and generated columns), row and size statistics, foreign key relationships and view lineage (a view is fed by the tables it reads: base table -> view).
Required Permissions
The user needs read access to the database and the information schema. SHOW VIEW is needed to read view definitions:
CREATE USER 'marmot_reader'@'%' IDENTIFIED BY 'your-password';
GRANT SELECT, SHOW VIEW ON your_database.* TO 'marmot_reader'@'%';
In the UI
Point-and-click, no config file needed.
- 1 Open Runs Create pipeline
- 2 Pick MariaDB from the plugin list.
- 3 Fill in the wizard, set a schedule, save.
With the CLI
Save a YAML config, then run marmot ingest.
name: my-mariadb-pipeline
runs:
- mariadb:
host: "<host>"
user: "<user>"
database: "<database>"$ marmot ingest -c ingest.yamlNot using plugins? Other ways to populate Marmot
Configuration
15 top-level fields. * marks required fields.
tags multiselect Tags to apply to discovered assets
external_links object[] External links to show on all assets
name string Display name for the link
icon string Icon identifier for the link
url string URL to the external resource
filter object Filter discovered assets by name (regex)
include multiselect Include patterns for resource names (regex)
exclude multiselect Exclude patterns for resource names (regex)
host string MariaDB server hostname or IP address
port int MariaDB server port
- default
- 3306
user string Username for authentication
password password Password for authentication
database string Database to discover
tls select TLS mode (false, true, skip-verify, preferred)
- default
- false
include_columns bool Whether to include column information in table and view schemas
- default
- true
include_views bool Whether to discover views
- default
- true
include_sequences bool Whether to discover sequences
- default
- true
include_row_counts bool Whether to include approximate row counts in table metadata
- default
- true
include_statistics bool Whether to emit row count, size and column count statistics
- default
- true
discover_foreign_keys bool Whether to discover foreign key relationships
- default
- true
Assets emitted
Metadata this plugin attaches to each discovered asset.
Database
MariaDBDatabaseFieldsThe metadata fields the plugin emits for the database asset.
host stringMariaDB server hostname
port intMariaDB server port
database stringDatabase name
server_version stringMariaDB server version
character_set stringDefault character set of the database
collation stringDefault collation of the database
MariaDB
MariaDBFieldsThe metadata fields the plugin emits for table, view and sequence assets.
host stringMariaDB server hostname
port intMariaDB server port
database stringDatabase name
schema stringSchema name (same as the database in MariaDB)
table_name stringObject name
object_type stringObject type (table, view, sequence)
engine stringStorage engine
collation stringTable collation
row_count intApproximate row count
data_length intData size in bytes
index_length intIndex size in bytes
auto_increment intNext auto increment value
created stringCreation timestamp
updated stringLast update timestamp
comment stringTable comment
system_versioned boolWhether the table keeps row history (WITH SYSTEM VERSIONING)
temporary boolWhether the table is temporary (only when the server exposes it)
View
MariaDBViewFieldsThe extra metadata fields emitted for views.
check_option stringWITH CHECK OPTION setting (NONE, LOCAL, CASCADED)
is_updatable boolWhether the view accepts writes
definer stringAccount that defined the view
security_type stringSQL SECURITY setting (DEFINER, INVOKER)
Sequence
MariaDBSequenceFieldsThe extra metadata fields emitted for sequences.
start_value intValue the sequence started at
minimum_value intSmallest value the sequence produces
maximum_value intLargest value the sequence produces
increment intStep between values
cache_size intNumber of values cached per fetch
cycle_option boolWhether the sequence restarts after reaching its limit
Column
MariaDBColumnFieldsThe per-column fields embedded in an asset's schema.
column_name stringColumn name
data_type stringFull column type, for example varchar(255) or int(11)
is_nullable boolWhether null values are allowed
is_primary_key boolWhether the column is part of the primary key
default_expression stringDefault value or expression
description stringColumn comment
is_auto_increment boolWhether the column auto-increments
is_generated boolWhether the column is computed from an expression
is_invisible boolWhether the column is hidden from SELECT *
character_set stringCharacter set
collation stringCollation