Skip to content

Latest commit

 

History

History
23 lines (12 loc) · 1.16 KB

README.md

File metadata and controls

23 lines (12 loc) · 1.16 KB

Build Core

BuildCore is a package for GoCore that will generate SQL Tables, indexes, primary & foreign keys, NOSQL Collections & Buckets, auto-generate Golang model code files for your application.

Configuration Files

This routine will read the webConfig.json file and read versioned schema files located in db/{appName}/schemas/{version}/ to create database files and models. {version} must conform to standard semantic versioning format 1.0.0. Major, Minor, and Revision.

webConfig.json

For information on how to configure webConfig.json see Application Settings.

Model

If database schema files exist buildCore will process the files and create a folder in your application called models. Within the models folder your {version}/model folder will be created along with all the model go files. To import your model into your application here is an example below:

import (
	"github.com/DanielRenne/GoCoreHelloWorld/models/v1/model"
)

For more information on the NOSQL model package see NOSQL Model.