Skip to main content

一个简单的 Java 代码生成器

Project description

generate-code

一个简单的 Java 代码生成器

必备安装:

brew install python # 安装Python (Python 3.x.x) 检查是否成功: python3 --version

curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py

python3 get-pip.py # macOS安装pip 检查是否成功: pip3 --version

python -m ensurepip --default-pip

python -m pip install --upgrade pip # win安装pip 检查是否成功: pip3 --version

PyPI方式:

pip3 install generate-code # 安装代码生成器项目

生成代码命令:

generate-code --db "root:password@localhost:3306/database_name"

必填 --db: 指定需要连接的数据库

选填 --table "table_name"": 可以指定需要成代码的表,也可以是多个用逗号隔开; 如: sys_user,sys_dept (默认扫描全部的表)

选填 --project-path /User/luojizhen/IdeaProjects/test: 可以指定存放代码的目录路径 (默认存放在根目录的generate-code下)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

generate-code-1.0.21.tar.gz (8.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

generate_code-1.0.21-py3-none-any.whl (11.0 kB view details)

Uploaded Python 3

File details

Details for the file generate-code-1.0.21.tar.gz.

File metadata

  • Download URL: generate-code-1.0.21.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.6

File hashes

Hashes for generate-code-1.0.21.tar.gz
Algorithm Hash digest
SHA256 536596b28612a5e5f33e90079a2385c539756d14759da18e7e33fce44a67e8c5
MD5 6f0fa8e121efc07c5b5ca032aa6334fe
BLAKE2b-256 1f99b6dd74034dc1d82ba1b9c148ac8d47b79cc024d334aa88a2e58fc622453d

See more details on using hashes here.

File details

Details for the file generate_code-1.0.21-py3-none-any.whl.

File metadata

  • Download URL: generate_code-1.0.21-py3-none-any.whl
  • Upload date:
  • Size: 11.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.6

File hashes

Hashes for generate_code-1.0.21-py3-none-any.whl
Algorithm Hash digest
SHA256 6d7345c0ae77792f8c37f382b46c3d3b01aba421d9986a4bd83d82ce6c9b29b8
MD5 60086f93eaf36751a1b838a9e061326e
BLAKE2b-256 f3018304c8c128a2481950c7918da40bc75f45cb00b6fe9a725efe72d0a1ef3e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page