Documentation ¶
Index ¶
- Variables
- type Comment
- func (c *Comment) Destroy() *query.Q
- func (c *Comment) Save() *query.Q
- func (c *Comment) Select() *query.Q
- func (c *Comment) String() string
- func (c *Comment) Table_Column_Types() map[string]string
- func (c *Comment) Table_Columns() []string
- func (c *Comment) Table_InsertColumns() []string
- func (c *Comment) Table_Name() string
- func (c *Comment) Table_PrimaryKey() string
- func (c *Comment) Table_PrimaryKey_Value() int64
- func (c *Comment) Table_UpdateColumns() []string
- type NullString
- type Time
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Comment_TableName = "Comment" Comment_Columns = []string{"CommentID", "DateCreated", "IsDeleted", "Content", "ObjectType", "ObjectID"} Comment_Column_Types = map[string]string{"CommentID": "%d", "DateCreated": "%d", "IsDeleted": "%d", "Content": "%s", "ObjectType": "%d", "ObjectID": "%d"} Comment_UpdateColumns = []string{"Content", "ObjectType", "ObjectID"} Comment_InsertColumns = []string{"DateCreated", "Content", "ObjectType", "ObjectID"} Comment_PrimaryKey = "CommentID" )
Functions ¶
This section is empty.
Types ¶
type Comment ¶
type Comment struct { CommentID int64 `db:"CommentID" json:"CommentID"` DateCreated int64 `db:"DateCreated" json:"DateCreated"` IsDeleted int `db:"IsDeleted" json:"IsDeleted"` Content null.String `db:"Content" json:"Content"` ObjectType int64 `db:"ObjectType" json:"ObjectType"` ObjectID int64 `db:"ObjectID" json:"ObjectID"` }
Comment is a `Comment` data model
func (*Comment) Table_Column_Types ¶
func (*Comment) Table_Columns ¶
func (*Comment) Table_InsertColumns ¶
Comment_InsertColumns is a list of all insert columns for this model
func (*Comment) Table_Name ¶
Comment_TableName is the name of the table
func (*Comment) Table_PrimaryKey ¶
func (*Comment) Table_PrimaryKey_Value ¶
Comment_PrimaryKey is the name of the table's primary key
func (*Comment) Table_UpdateColumns ¶
Comment_UpdateColumns is a list of all update columns for this model
type NullString ¶
type NullString struct {
sql.NullString
}
func NewNullString ¶
func NewNullString(str string) NullString
func (*NullString) MarshalJSON ¶
func (n *NullString) MarshalJSON() ([]byte, error)
func (*NullString) String ¶
func (n *NullString) String() string
func (*NullString) UnMarshalJSON ¶
func (n *NullString) UnMarshalJSON(data []byte) error
type Time ¶
func (*Time) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface
func (*Time) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface
Click to show internal directories.
Click to hide internal directories.