{"repo":"stephenafamo/boilingfactory","free":true,"listed":false,"github":"https://github.com/stephenafamo/boilingfactory","clone":"git clone https://github.com/stephenafamo/boilingfactory.git","description":"BoilingFactory is a CLI tool that generates factories for models generated by sqlboiler. https://github.com/volatiletech/sqlboiler.","language":"Smarty","stars":12,"topics":["golang","sqlboiler","database","factorybot"],"license":"MIT","category":"databases-storage","readme_excerpt":"BoilingFactory This is a CLI tool that generates factories for models generated by sqlboiler . Installation Install sqlboiler Install your database driver for sqlboiler . Generate your models. Link Install boilingfactory : go install github.com/stephenafamo/boilingfactory Generate factory: go run github.com/stephenafamo/boilingfactory psql A little taste Configuration The program accepts these flags to overwrite any configuration. --sqlboiler-models : The package of your generated models. Needed to import them properly in the factory. DEFAULT: current/go/module/models . --config : Configuration file path. DEFAULT: sqlboiler.toml --output or -o : The name of the folder to output to. DEFAULT: factory --pkgname or -p : The name you wish to assign to your generated package. DEFAULT: factory --wipe : Delete the output folder (rm -rf) before generation to ensure sanity. DEFAULT false --version : Print the version debug or d : Debug mode prints stack traces on error. DEFAULT false They can also be set in the config file, or as environment variables To attempt to match your generated model options, the defualt the sqlboiler configuration files are used: sqlboiler.toml or json or yaml . NOTE: If you have customized the output folder or pkgname in your sqlboiler config file and you are passing the same file to boilingfactory , you should overwrite them using the -o and p flags respectively. Mods Mods are central to the design of the factories. Each model has its own mod type, which is ","default_branch":null,"files":null,"tree":[],"storefront":"/r/stephenafamo","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/stephenafamo/boilingfactory/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}