This is my first open source software project, and it’s not complete yet.
Script for generate example:
#!/usr/bin/env sh
### install genthemall
pip install genthemall
# generate project config file
genthemall project myProject ii2d.com
### SysUser
# add a module name sysUser and add field id type int.
genthemall field sysUser id type=int
# add field username type string, max length 40, min length 6.
genthemall field sysUser username type=string max=40 min=6
# add field password type string, max length 40, min length 8.
genthemall field sysUser password type=string max=40 min=8
# add field email type string.
genthemall field sysUser email type=string
# add field address type string
genthemall field sysUser address type=string
# add field sex type int
genthemall field sysUser sex type=int
### SysRole
# add a module name sysRole and add field id type int.
genthemall field sysRole id type=int
# add field roleName type string.
genthemall field sysRole roleName type=string
### Generate create database sql file
genthemall generate oracle.create_database "init.sql" -v --one-file && cat out/init.sql
# And then see the output. :)
### Generate java model file
genthemall generate java.model "src/main/java/\${config['path']}/model/\${module['pascalName']}.java" -v && cat out/src/main/java/com/ii2d/model/SysRole.java
# And then see the output. :)
Release files for GenThemAll 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| GenThemAll-0.3.0.tar.gz | 7.3 kB | Details |
Release files / GenThemAll-0.3.0.tar.gz
| Download URL | GenThemAll-0.3.0.tar.gz |
|---|---|
| Size | 7.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9e3e4c8fb0c76ea9c8418aafb2fc8b9775cd12c5cd55e70414a9450eedd85f0c
|
|
BLAKE2b-256 checksum How to use checksums |
87a0a09f78a7fd70c4bd2fb1a5380db65551f4b0061d729fd6ec44fabe79d41a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |