Config store
個人の軽量利用はfolder-backed SQLite、試用はlocal Docker MariaDB volume、team利用はmanaged MySQL / MariaDB serverを選びます。
Local evaluation
深い設計文書を読む前に、起動、health、metadata sync、reference compare までを一度確認します。ここでは default の local MariaDB config store を使う最短経路を扱います。
Docker / Docker Compose、GNU Make、host PHP CLI を使える環境を想定します。初回は image pull と build に数分かかることがあります。
Two separate choices
DegoDB自身の設計metadataの保存先と、DegoDBがimport・生成対象として扱うuser/business DBは別です。
個人の軽量利用はfolder-backed SQLite、試用はlocal Docker MariaDB volume、team利用はmanaged MySQL / MariaDB serverを選びます。
既存MySQL / MariaDB、local Lab DB、または後で準備するDBのどれをsource / target schemaとして扱うか決めます。
Prepare and start
make up-mtool の最後に表示される access URL と stub login 情報を正として使います。
make env
make up-mtool
Health
health が返り、config DB schema が current なら次へ進みます。
make ps-mtool
make health-mtool
make config-db-preflight-mtool
Canonical sync
schema import、canonical metadata、DataClass、DBAccess のつながりを確認します。
make mtool-canonical-sync
Tutorial gate
sample01 は import / sync / output / reference compare を通す最小 tutorial gate です。
make sample01-pack-runtime-test
Choose the next proof
Lightweight profile
DegoDB自身の設計metadataだけをSQLite file storeへ置き、user / Lab DBは別に保ちます。
APP_CONFIG_STORE_DIR=work/config-store make up-mtool-lite
make health-mtool-lite
make config-db-preflight-mtool-lite
Stop safely
stop はコンテナを停止します。volume も消す reset は、設計データを失ってよい fresh start の場合だけ使います。
make stop-mtool
# コンテナとnetworkを削除
make down-mtool