Separate exec types into files, document code (#10)
Go Tests / test (push) Successful in 1m2s

Reviewed-on: #10
This commit was merged in pull request #10.
This commit is contained in:
2026-07-28 20:16:23 +00:00
parent 30e148f0e3
commit 5c56241cf6
10 changed files with 413 additions and 281 deletions
+4 -3
View File
@@ -17,8 +17,9 @@ type ORM struct {
cache *cache.SchemaCache
}
// Inits the ORM library.
// Param objs is an array which should be an array of the types which describe the tables.
// NewOrm inits and creates an instance ORM library.
//
// obj is an array which should be an array of the types which describe the tables.
func NewORM(objs ...any) *ORM {
typeParsers := make(map[string]*schema.Parser)
@@ -57,7 +58,7 @@ func NewORM(objs ...any) *ORM {
return &ORM{cache: cache}
}
// Builds the DDL and returns it as a string
// CreateSchmea builds the DDL and returns it as a string
func (orm *ORM) CreateSchema() (string, error) {
var ddl strings.Builder