14 lines
234 B
Go
14 lines
234 B
Go
package pgson
|
|
|
|
import (
|
|
"git.secnex.io/secnex/pgson/build"
|
|
"git.secnex.io/secnex/pgson/schema"
|
|
)
|
|
|
|
func CreateSQL(s *schema.Table) (string, error) {
|
|
if err := s.Validate(); err != nil {
|
|
return "", err
|
|
}
|
|
return build.Create(s)
|
|
}
|