https://github.com/daobab-projects/let-me-in
A Startup Project for your database
https://github.com/daobab-projects/let-me-in
Last synced: 4 months ago
JSON representation
A Startup Project for your database
- Host: GitHub
- URL: https://github.com/daobab-projects/let-me-in
- Owner: daobab-projects
- License: apache-2.0
- Created: 2023-11-18T16:19:22.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-19T19:35:18.000Z (over 2 years ago)
- Last Synced: 2025-01-01T06:14:08.597Z (over 1 year ago)
- Language: Java
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# let-me-in
A [Daobab](http://www.daobab.io) Startup Project for your database.
Uses a Spring-Boot framework.
# About
This project may help you create [Daobab](http://www.daobab.io) connection to your database and perform complete Reverse
Engineering for it.
The project contains just two classes:
- `Application` - a Spring Boot starter
- `Guide` - your guide to check the connection and perform the reverse engineering.
By default, the project contains client libraries to: MySQL, PosgreSql, H2
# How to run?
Take a look at the application.yml properties file.
Put the proper parameters to connect to your database.
Run the `Application` class
Check out the console. [Daobab](http://www.daobab.io) connector should validate the database connection.
If everything is fine, you can find something like this:
```
Connection OK. Database: MySQL version: 8.0 driver: MySQL Connector/J
User 'root' is allowed to read database content as follows:
Catalog: cloud_job_manager (no schema)
Catalog: cross (no schema)
Catalog: information_schema (no schema)
Catalog: kwadrat (no schema)
Catalog: l2 (no schema)
Catalog: mdm (no schema)
Catalog: mysql (no schema)
Catalog: performance_schema (no schema)
Catalog: sakila (no schema)
Catalog: sys (no schema)
Catalog: testdb (no schema)
Catalog: world (no schema)
```
If the database connection is fine, you can perform the reverse engineering:
Go to `Guide` class and init method.
comment: `step1_checkConnection()`
uncomment: `step2_generateClasses()`;
Go to `step2_generateClasses()` method:
Decide where [Daobab](http://www.daobab.io) may write the classes:
```
generator.setPath("C:\\Daobab\\");
```
Decide which catalogue or schema you want to handle:
```
generator.generateOnlyForCatalogues("catalogue");
generator.generateOnlyForSchemas("schema");
```
Otherwise, all catalogues and schemas will be recreated in classes.
Next, run the `Application` again.
Generated output classes should be put into the project you are working on.
# More about Daobab
http://www.daobab.io