#---------------------Database settings--------------------- #DB_HOST - Database server name or ip-address. Only Postgres SQL DB_HOST="" #DB_NAME - Database table name DB_NAME="" #DB_SCHEME - Database schema name DB_SCHEME="public" #DB_PORT - Database port number DB_PORT="5432" #DB_USER - Database login (user) DB_USER="" #DB_PASSWORD - Database login password DB_PASSWORD="" #INCLUDE_TABLES - table name filter. Regular expression INCLUDE_TABLES="" #INCLUDE_TABLES - table name ignore filter. Regular expression EXCLUDE_TABLES="ext_" #---------------------Template settings--------------------- #SERVICE_REPOSITORY_URL - URL of your new service repository (Github, gitlab, etc.) SERVICE_REPOSITORY_URL="gitlab.aescorp.ru/dsp_dev/claim/sync_service" #SERVICE_NAME - service name for your new service SERVICE_NAME=sync_service #TEMPLATE_SERVICE_NAME - service name in your template files TEMPLATE_SERVICE_NAME=Sync_service #same folder names uses for read template files and create new files #TEMPLATE_FOLDERNAME - filder name in your computer with templates TEMPLATE_FOLDERNAME="templates" #TEMPLATE_FOLDERNAME_MODEL - folder name for create models (golang struct with all table fields) TEMPLATE_FOLDERNAME_MODEL="pkg/object_model/entities" #TEMPLATE_FOLDERNAME_DB - folder name for create database crud operations TEMPLATE_FOLDERNAME_DB="pkg/db" #TEMPLATE_FOLDERNAME_GRPC - folder name for create .proto file TEMPLATE_FOLDERNAME_GRPC="pkg/network/grpc" #TEMPLATE_FOLDERNAME_GRPC_SERVER - filder name for create grpc server files TEMPLATE_FOLDERNAME_GRPC_SERVER="internal/server_grpc" #TEMPLATE_FOLDERNAME_GRPC_CLIENT - folder name for create grpc client files TEMPLATE_FOLDERNAME_GRPC_CLIENT="grpc_client" #TEMPLATE_FOLDERNAME_NRPC_SERVER - folder name for create nrpc server files TEMPLATE_FOLDERNAME_NRPC_SERVER="internal/server_nrpc" #TEMPLATE_FOLDERNAME_NRPC - folder name for create common nrpc files TEMPLATE_FOLDERNAME_NRPC="pkg/network/nrpc" #TEMPLATE_FOLDERNAME_NRPC_CLIENT - foldr name for create nrpc client files TEMPLATE_FOLDERNAME_NRPC_CLIENT="pkg/network/nrpc/nrpc_client" #TEMPLATE_FOLDERNAME_CRUD_STARTER - folder name for create crud_starter.go file TEMPLATE_FOLDERNAME_CRUD_STARTER="pkg/crud_starter" #TEMPLATE_FOLDERNAME_ALIAS - folder name for create alias.go file, with go types with aliases TEMPLATE_FOLDERNAME_ALIAS="pkg/object_model/types/alias" #TEXT_TEMPLATE_MODEL - model name text in templates, for replace to new model names TEXT_TEMPLATE_MODEL="LawsuitStatusType" #TEXT_TEMPLATE_TABLENAME - table name text in tamplates, for replace to new table names TEXT_TEMPLATE_TABLENAME="lawsuit_status_types" #USE_DEFAULT_TEMPLATE - "true" will do default text replaces. "false" - for use own templates USE_DEFAULT_TEMPLATE=true #HAS_IS_DELETED - fill "true" if you have "is_deleted" column, and want Delete() Restore() functions. HAS_IS_DELETED=true #---------------------Create files settings--------------------- #NEED_CREATE_CRUD - fill "true" if you want create crud operations files NEED_CREATE_CRUD=true #NEED_CREATE_GRPC - fill "true" if you want create grpc operations files NEED_CREATE_GRPC=true #NEED_CREATE_NRPC - fill "true" if you want create nrpc operations files (need NATS message query server) NEED_CREATE_NRPC=true #NEED_CREATE_MODEL_STRUCT - fill "true" if you want create model files with golang struct with all database fields NEED_CREATE_MODEL_STRUCT=true #NEED_CREATE_MODEL_CRUD - fill "true" if you want create crud operations in model files NEED_CREATE_MODEL_CRUD=true #NEED_CREATE_DB_TEST - fill "true" if you want create DB _test.go files NEED_CREATE_DB_TEST=true #NEED_CREATE_GRPC_SERVER_TEST - fill "true" if you want create GRPC server _test.go files NEED_CREATE_GRPC_SERVER_TEST=true #NEED_CREATE_GRPC_CLIENT_TEST - fill "true" if you want create GRPC client _test.go files NEED_CREATE_GRPC_CLIENT_TEST=true #NEED_CREATE_NRPC_SERVER_TEST - fill "true" if you want create NRPC server _test.go files NEED_CREATE_NRPC_SERVER_TEST=true #NEED_CREATE_NRPC_CLIENT_TEST - fill "true" if you want create NRPC client _test.go files NEED_CREATE_NRPC_CLIENT_TEST=true #PREFIX_SERVER_GRPC - filename prefix for grpc server files PREFIX_SERVER_GRPC="server_grpc_" #COMMENT_MODEL_STRUCT - fill comments to every model structure COMMENT_MODEL_STRUCT="модель для таблицы " #TEXT_MODULE_GENERATED - comment text for every module file TEXT_MODULE_GENERATED="//File generated automatic with crud_generator app\n//Do not change anything here.\n"