saifur/dbhelper

这是一个关于数据库助手功能的包

v1.0.1 2023-07-06 08:34 UTC

This package is auto-updated.

Last update: 2024-09-26 13:25:28 UTC


README

提供数据库备份等功能的数据库助手

Total Downloads Latest Stable Version License

内容

文档、安装和使用说明

此包允许您管理日志。

安装后,您可以执行如下操作:

命令

composer require saifur/dbhelper
composer dump-autoload
php artisan vendor:publish --tag=public --force

API

请求:服务器数据库完整备份

  • 方法:POST
  • URL: https://:8001/saifur/db-helper/db-backup/server-db-full-backup
  • 头部
    • Authorization: Bearer <your_token>
    • Content-Type: application/json
  • 正文
    • form-data

请求:服务器数据库结构备份

  • 方法:POST
  • URL: https://:8001/saifur/db-helper/db-backup/server-db-structure-backup
  • 头部
    • Authorization: Bearer <your_token>
    • Content-Type: application/json

请求:服务器数据库数据备份

  • 方法:POST
  • URL: https://:8001/saifur/db-helper/db-backup/server-db-data-backup
  • 头部
    • Authorization: Bearer <your_token>
    • Content-Type: application/json
  • 正文
    • form-data
      • except_tables[0]: activity_log
      • except_tables[1]: audit_trail
      • table_rules[0][table_name]: audit_trail
      • table_rules[0][row_limit]: 100
      • table_rules[0][order_by]: id
      • table_rules[0][order_type]: DESC
      • table_rules[1][table_name]: activity_log
      • table_rules[1][row_limit]: 100
      • table_rules[1][order_by]: id
      • table_rules[1][order_type]: DESC

请求:服务器数据库状态

  • 方法:POST
  • URL: https://:8001/saifur/db-helper/db-backup/server-db-status
  • 头部
    • Authorization: Bearer <your_token>
    • Content-Type: application/json
  • 正文
    • form-data
      • 视图:html

贡献者

  • Md. Saifur Rahman

替代方案

许可证

MIT 许可证 (MIT)。请参阅许可证文件以获取更多信息。