https://github.com/samlet/bluecc
https://github.com/samlet/bluecc
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/samlet/bluecc
- Owner: samlet
- Created: 2021-03-01T01:20:22.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-05-24T06:37:57.000Z (about 5 years ago)
- Last Synced: 2025-02-15T00:32:21.654Z (over 1 year ago)
- Language: Rust
- Size: 2.65 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# bluecc
## quick start
```bash
$ cargo run -p entity-seed --bin seed
Compiling entity-seed v0.1.0 (/Users/xiaofeiwu/sagas/projs/bluecc/entity-seed)
Finished dev [unoptimized + debuginfo] target(s) in 7.65s
Running `target/debug/seed`
entity-seed 0.1.0
USAGE:
seed
FLAGS:
-h, --help Prints help information
-V, --version Prints version information
SUBCOMMANDS:
all Generate specific modules: sql-files, model, dto
data-files Build all seed data files into a compressed resource file
entity Show entity meta-info
gen Generate specific entity with the type name
help Prints this message or the help of the given subcommand(s)
list List all entities in a module
list-data-files List all data files and it's entities
list-services List all service names
model-files Build all entity schema into a compressed resource file
seed Show entity seed data
service Show service meta-info
service-files Build all service schema into a compressed resource file
wrapper Generate model-types
$ cargo run -p entity-seed --bin seed seed Person
Finished dev [unoptimized + debuginfo] target(s) in 0.36s
Running `target/debug/seed seed Person`
.. execute => Seed { name: "Person" }
[2021-03-19T08:04:26Z INFO entity_seed::meta::data_files_procs] size 1639132
doc OfbizSetupShippingData.xml has 1 Person
Person (1280..1304)
partyId = _NA_
doc ManufacturingTestsData.xml has 2 Person
Person (2478..2555)
partyId = TestManufAdmin
firstName = Manufacturing
lastName = Admin
Person (3459..3530)
partyId = TestSupplyAdmin
firstName = Supply
lastName = Admin
doc OrderTestData.xml has 1 Person
Person (3122..3195)
partyId = TestDemoCustomer
firstName = Test
lastName = Customer
doc PartyTestsData.xml has 2 Person
```