承接 climba-commerce/mysql-dump 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

climba-commerce/mysql-dump

最新稳定版本:v1.0.3

Composer 安装命令:

composer require climba-commerce/mysql-dump

包简介

MySQL database dump.

关键字:

README 文档

README

This is a backup utility used to dump a database for backup or transfer to another MySQL server. The dump typically contains SQL statements to create the table, populate it, or both.

It requires PHP 5.6 (release 1.5) or PHP 7.1 or later.

Install

composer require climba-commerce/mysql-dump

Usage

Create MySQLi object and pass it to the MySQLDump:

$db = new mysqli('localhost', 'root', 'password', 'database');
$dump = new MySQLDump($db);

You can optionally specify how each table or view should be exported:

$dump->tables['search_cache'] = MySQLDump::DROP | MySQLDump::CREATE;
$dump->tables['log'] = MySQLDump::NONE;

Then simply call save() or write():

$dump->save('export.sql.gz');

Import dump from file to database this way:

$import = new MySQLImport($db);
$import->load('dump.sql.gz');

To run tests, execute:

composer run test

Now you can mask data on tables, use this way with IMaskInterface:

$dump->addMask('users', 'email', IMaskInterface);

If you like it, please make a donation now. Thank you!

统计信息

  • 总下载量: 6.96k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 48
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2023-09-12

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固