stephenafamo / bob

SQL query builder and ORM/Factory generator for Go with support for PostgreSQL, MySQL and SQLite
https://bob.stephenafamo.com
MIT License
760 stars 39 forks source link

models folder is always wiped #201

Closed HTechHQ closed 5 months ago

HTechHQ commented 5 months ago

Observed

When generating the code for a folder that already contains other files: all the other files are deleted. This continues to happen, even with the wipe configuration disabled.

The config file I am using:

psql:
  dsn: "postgres://user:pass@host:port/dbname"

  schemas:
    - mySchema
  wipe: false
  output: path/to/models
  uuid_pkg: google

Expected The folder contains other files that I need to keep. The other files should stay available and not be deleted.

Version $ bobgen-psql --version bobgen-psql version v0.25.0

HTechHQ commented 5 months ago

The config file has the wrong strucutre, found it in https://github.com/stephenafamo/bob/issues/174#issuecomment-1932840669