fedi.matsuu.org

fedi.matsuu.org

matsuu . @matsuu,

本番環境のDBから手元の開発環境やデバッグ用のサブセットを抽出したSQLを作れるCLIツール。例えばorders.id=12345と指定すると外部キーなどを辿って関連するテーブルとレコードを抽出。匿名化も対応。Python実装
---
GitHub - nabroleonx/dbslice: Extract a slice of your production database to reproduce bugs locally. Point dbslice at a record, it follows foreign keys and gives you a complete, importable subset
https://github.com/nabroleonx/dbslice
#bookmarks

Open thread