Documentation
¶
Index ¶
- type Database
- type DatabaseService
- type Service
- type Table
- func (t *Table) Execute() (sql.Result, error)
- func (t *Table) Field(name string, dataType *query.DataType, constrain *query.Constrain) *Table
- func (t *Table) NewForeignKeyConstrain(constrain, foreignKey, fkTable string) *Table
- func (t *Table) SetForeignKey(onUpdate, onDelete interface{}) *Table
- func (t *Table) SetPrimaryKey(fields []string) *Table
- type TableService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DatabaseService ¶
type DatabaseService interface { Service }
func NewDatabase ¶
func NewDatabase(name string, db *sql.DB) DatabaseService
type Table ¶
type Table struct {
// contains filtered or unexported fields
}
func (*Table) NewForeignKeyConstrain ¶
func (*Table) SetForeignKey ¶
SetForeignKey set the foreign key on the table.
func (*Table) SetPrimaryKey ¶
SetPrimaryKey function used to set the PK to multiple columns.
Click to show internal directories.
Click to hide internal directories.