Documentation
¶
Index ¶
- Variables
- type UserDB
- type Users
- func (s *Users) HasPK() bool
- func (s *Users) PKPointer() interface{}
- func (s *Users) PKValue() interface{}
- func (s *Users) Pointers() []interface{}
- func (s *Users) SetPK(pk interface{})
- func (s Users) String() string
- func (s *Users) Table() reform.Table
- func (s *Users) Values() []interface{}
- func (s *Users) View() reform.View
Constants ¶
This section is empty.
Variables ¶
View Source
var UsersTable = &usersTableType{ s: parse.StructInfo{Type: "Users", SQLSchema: "", SQLName: "users", Fields: []parse.FieldInfo{{Name: "ID", Type: "int32", Column: "id"}, {Name: "Name", Type: "string", Column: "name"}, {Name: "Phone", Type: "string", Column: "phone"}, {Name: "Date", Type: "string", Column: "date"}, {Name: "City", Type: "string", Column: "city"}, {Name: "Country", Type: "string", Column: "country"}, {Name: "Email", Type: "string", Column: "email"}, {Name: "Coordinates", Type: "string", Column: "coordinates"}}, PKFieldIndex: 0}, z: new(Users).Values(), }
UsersTable represents users view or table in SQL database.
Functions ¶
This section is empty.
Types ¶
type Users ¶
type Users struct { ID int32 `reform:"id,pk"` Name string `reform:"name"` Phone string `reform:"phone"` Date string `reform:"date"` City string `reform:"city"` Country string `reform:"country"` Email string `reform:"email"` Coordinates string `reform:"coordinates"` }
Users represents a row in users table.
func (*Users) PKPointer ¶
func (s *Users) PKPointer() interface{}
PKPointer returns a pointer to primary key field for that record. Returned interface{} value is never untyped nil.
func (*Users) PKValue ¶
func (s *Users) PKValue() interface{}
PKValue returns a value of primary key for that record. Returned interface{} value is never untyped nil.
func (*Users) Pointers ¶
func (s *Users) Pointers() []interface{}
Pointers returns a slice of pointers to struct or record fields. Returned interface{} values are never untyped nils.
func (*Users) Table ¶
func (s *Users) Table() reform.Table
Table returns Table object for that record.
Click to show internal directories.
Click to hide internal directories.