models

package
v0.9.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 30, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Modelslist []Model = []Model{
	new(TestModel),
}

modelslist.go contains your models

Functions

This section is empty.

Types

type Model

type Model interface {
	Init(*sql.DB) error
	RawExec(string) (sql.Result, error)
	GetRows() *sql.Rows
}

type TestModel

type TestModel struct {
	TableName string
	Rows      *sql.Rows
	Db        *sql.DB
}

func (*TestModel) GetRows

func (m *TestModel) GetRows() *sql.Rows

func (*TestModel) Init

func (m *TestModel) Init(db *sql.DB) error

func (*TestModel) RawExec

func (m *TestModel) RawExec(query string) (sql.Result, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL