eloquent/dumpling
最新稳定版本:0.2.2
Composer 安装命令:
composer require eloquent/dumpling
包简介
Diff-friendly mysqldump with an improved interface.
README 文档
README
Diff-friendly mysqldump with an improved interface.
Installation and documentation
- Available as Composer package eloquent/dumpling.
- Executable phar available for download.
- API documentation available.
What is Dumpling?
Dumpling is a wrapper for mysqldump that uses sensible defaults, and provides a streamlined interface. Dumpling is designed to be as intuitive and simple to use as possible.
Dumpling still uses mysqldump internally, so it's 100% compatible. It also produces output which is much more diff-friendly than standard mysqldump.
What's wrong with mysqldump?
- Outputs internal databases like
mysqlandinformation_schemawhich are useless in 99% of cases (and potentially dangerous when importing). - Extreme line length on extended INSERT statements causes havok for many text editors.
- Diffing of extended INSERT statements is useless, because of line length, and unpredictable row order.
- Leaves out important procedure and function information by default.
- Command line interface is cluttered and inflexible; inclusion/exclusion of databases and tables is inconsistent and limited.
- Raw binary data ruins portability & human readability.
- Command line interface uses non-standard conventions for options and their values.
Dumpling usage
Usage:
dumpling [database] [table1] ... [tableN]
Arguments:
database The database to dump.
table The table(s) to dump. Expects database.table format.
Options:
--database (-D) Additional database(s) to dump. (multiple values allowed)
--exclude-database (-X) Database(s) to ignore. (multiple values allowed)
--table (-T) Additional table(s) to dump. Expects database.table format. (multiple values allowed)
--exclude-table (-x) Table(s) to ignore. (multiple values allowed)
--no-data (-d) Do not dump table data.
--host (-H) The server hostname or IP address. (default: "localhost")
--port (-P) The server port. (default: "3306")
--user (-u) The user to connect as. (default: "root")
--password (-p) The password for the user.
--help (-h) Display this help message.
--version (-V) Display this application version.
Usage examples
Dumping localhost as root with no password
dumpling
Excluding databases
dumpling --exclude-database database_a
Excluding data
dumpling --no-data
Dumping one specific database
dumpling database_name
Dumping one specific table
dumpling database_name table_name
Dumping two specific tables from different databases
dumpling --table database_a.table --table database_b.table
Requirements
eloquent/dumpling 适用场景与选型建议
eloquent/dumpling 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 8 次下载、GitHub Stars 达 14, 最近一次更新时间为 2015 年 07 月 14 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「cli」 「dump」 「mysql」 「command」 「mysqldump」 「improved」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 eloquent/dumpling 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 eloquent/dumpling 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 eloquent/dumpling 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
This package will add the `dd` and `dump` helpers to your Phalcon application.
Dibi is Database Abstraction Library for PHP
Simple Twig extension improving templates debugging
nice output for debug functions for PHP 5.3
Laravel SQL Queries Dumper
PHP module for MySql database
统计信息
- 总下载量: 8
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 14
- 点击次数: 21
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-07-14