CLean ARchitecture
This is a Go application for creating a clean architecture of the application being developed.
⚠ Currently only MySQL/MariaDB and PostgreSQL is supported
Table of Contents
Build
make && sudo mv bin/clar /usr/local/bin/
Usage
Entity And Repository
Creating a entity with repository.
clar e name
or
clar entity name [-d dbtype|--db=dbtype] [-s|--simple] or [-e|--empty]
name - entity name (required).
dbtype - for what type of database (mysql or pg, default: pg).
-s, --simple - simple entity (ID only).
-e, --empty - empty entity (without fields).
if migration tools were missing, they will be created.
Array Structure For JSON Columns
Creating an array structure for a json column.
clar a name
or
clar array name
name - struct name (required).
Structure For JSON Columns
Creating a structure for a json column.
clar s name
or
clar struct name
name - struct name (required).
Help
Any of the options:
clar -h|--help
License
MIT License © Roman Novikov