clar

command module
v0.0.0-...-9b8a359 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 6, 2025 License: MIT Imports: 12 Imported by: 0

README

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

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL