Generate `CREATE TABLE...` statement from an sqlboiler model

270 Views Asked by At

Is it possible to generate a create statement (CREATE TABLE...) from a built SQLBoiler model?

// Node is an object representing the database table.
type Node struct {
    ID      int64       `boil:"id" json:"id" toml:"id" yaml:"id"`
    Address null.String `boil:"address" json:"address,omitempty" toml:"address" yaml:"address,omitempty"`

    R *nodeR `boil:"-" json:"-" toml:"-" yaml:"-"`
    L nodeL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

0

There are 0 best solutions below