# data_manager **Repository Path**: fgc1/data_manager ## Basic Information - **Project Name**: data_manager - **Description**: DataManager 类是一个数据管理类,主要用于封装数据库操作,提供对数据库的增删改查功能。它支持多种数据库类型(如 PostgreSQL、MySQL、SQLite),并且通过配置文件动态生成数据库模型。 - **Primary Language**: Python - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-12-17 - **Last Updated**: 2025-01-02 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # data_manager #### 介绍 DataManager 类是一个数据管理类,主要用于封装数据库操作,提供对数据库的增删改查功能。它支持多种数据库类型(如 PostgreSQL、MySQL、SQLite),并且通过配置文件动态生成数据库模型。 #### 软件架构 ``` database_manager/ ├── database_manager/ # 主代码目录 │ ├── __init__.py │ ├── cli.py # 命令行接口 │ ├── models.py # 数据库模型定义 │ ├── utils.py # 工具函数 ├── tests/ # 测试代码 │ ├── __init__.py │ └── test_cli.py ├── setup.py # 打包配置 ├── README.md # 项目说明 └── requirements.txt # 依赖项 ``` #### 安装教程 1. python -m build 2. pip install . 3. xxxx #### 使用说明 ```commandline Usage: db_mgr [OPTIONS] COMMAND [ARGS]... Options: --help Show this message and exit. Commands: delete 删除表中的数据 insert 插入数据到表中 list-tables 列出数据库中的所有表 query 通用查询命令 update 更新表中的数据 ``` #### 参与贡献 1. Fork 本仓库 2. 新建 Feat_xxx 分支 3. 提交代码 4. 新建 Pull Request #### 特技 1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md 2. CSDN博客 [blog.gitee.com](https://blog.gitee.com)