Separate exec types into files, document code (#10)
Go Tests / test (push) Successful in 1m2s
Go Tests / test (push) Successful in 1m2s
Reviewed-on: #10
This commit was merged in pull request #10.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user