EXT:statica is a TYPO3 development extension designed to export and
import static SQL data
from ext_tables_static+adt.sql files. Its main purpose is to allow
developers to version-control
static database data (e.g., be_users, or any other table) directly
inside an extension.
⚠️ Important: This extension is intended only for development environments.
It should be installed using Composer's--devflag and removed before deployment to production.
- Export any table(s) into an extension's
ext_tables_static+adt.sqlfile for version control\ - Import static SQL data back into the database using a CLI command\
- No relation resolving (MM tables, inline relations, foreign keys)
→ Relations must be handled manually by the developer - Extends TYPO3 Core's
SQLReaderclass to better interpret comment styles found in ADT dumps
(especially MySQL conditional comments generated bymysqldump) - Future feature: Enable or disable commands depending on the environment (e.g., dev/stage/prod)
composer require vendor/statica --devBecause the extension is meant only for development workflows, it should
always be installed using
the --dev flag and excluded from production deployments.
Export one or multiple tables into an extension's
ext_tables_static+adt.sql file:
bin/typo3 statica:static-export <extensionKey> <tables>Example:
bin/typo3 statica:static-export my_site_package be_users,tx_news_domain_model_newsThis writes the exported SQL into:
EXT:my_site_package/ext_tables_static+adt.sql
Import the static SQL from ext_tables_static+adt.sql into the
database:
bin/typo3 statica:static-import <extensionKey>Example:
bin/typo3 statica:static-import my_site_package- No relationship resolution
- MM tables must be exported separately\
- Inline and foreign-key relations are not automatically handled
- Only meant for development
- Do not use this extension in production\
- Remove the package before releasing
Future improvements may include:
- Auto-hiding or enabling CLI commands based on environment (e.g.,
allow export only in
development) - Additional validation for SQL dumps
- Extended support for multi-table dependency handling
MIT License (or your chosen license)
This extension is intended for development workflows only.
Accidental import operations in production may lead to data loss.
Use with caution and remove before deployment.