started work on the data models

This commit is contained in:
cubixle
2021-06-16 21:52:50 +01:00
parent 56d9a561ef
commit db415d6c70
4 changed files with 11 additions and 2 deletions

View File

@@ -2,7 +2,6 @@ package main
import (
"embed"
_ "embed"
"io/ioutil"
"log"

11
db.go
View File

@@ -10,3 +10,14 @@ type DataProperty struct {
Type string `yaml:"type"`
AutoIncrement bool `yaml:"autoinc"`
}
func GenerateDataModels(cfg Config) error {
t, err := template.ParseFS(FS, "templates/data_model.go.tmpl")
if err != nil {
return err
}
outputFile := "internal/data/models.go"
// check/create file path
fp := filepath.Dir(outputFile)
}

View File

@@ -1 +0,0 @@
package tuugen