Sign inSign up

pifou25/entity-generator

By pifou25

•Updated 2 days ago

Highly customizable (typed) entity generator from database.

Image
0

2.3K

pifou25/entity-generator repository overview

⁠Entity Generator

Highly customizable (typed) entity generator from database. It can generate entities for whole database, table/view and from raw SQL query

⁠Github Repository

https://github.com/pifou25/entity-generator⁠

⁠Example

Lets say we want to generate all PHP entities for a database hosted on db named mydb with user and password set, and generate entities into the entities subdirectory

We also need to have the database and this container running into the same network db_network

docker run --rm -v $PWD/entities:/app/entities --network db_network \
   -e MYSQL_HOSTNAME=db \
   -e MYSQL_DATABASE=mydb \
   -e MYSQL_USERNAME=myuser \
   -e MYSQL_PASSWORD=mypassword \
    pifou25/entity-generator

Tag summary

Content type

Image

Digest

sha256:41fe7c5e7…

Size

180.7 MB

Last updated

2 days ago

docker pull pifou25/entity-generator