Documentation

This commit is contained in:
2026-07-28 22:04:34 +02:00
parent 8d91fc9aab
commit 7553b57ec9
3 changed files with 53 additions and 3 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