Documentation ¶
Index ¶
- Variables
- type Comment
- func (c *Comment) Create() string
- func (c *Comment) Destroy() string
- func (c *Comment) FromID(id int64) string
- func (c *Comment) Select() *query.Q
- func (c *Comment) String() string
- func (c *Comment) Table_Column_Types() map[query.Column]string
- func (c *Comment) Table_Columns() []query.Column
- func (c *Comment) Table_InsertColumns() []query.Column
- func (c *Comment) Table_Name() query.TableName
- func (c *Comment) Table_PrimaryKey() query.Column
- func (c *Comment) Table_PrimaryKey_Value() int64
- func (c *Comment) Table_UpdateColumns() []query.Column
- func (c *Comment) Update() string
- type NullString
- type Time
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Comment_TableName query.TableName = "Comment" Comment_Column_CommentID query.Column = "CommentID" Comment_Column_DateCreated query.Column = "DateCreated" Comment_Column_IsDeleted query.Column = "IsDeleted" Comment_Column_Content query.Column = "Content" Comment_Column_ObjectType query.Column = "ObjectType" Comment_Column_ObjectID query.Column = "ObjectID" Comment_Columns = []query.Column{Comment_Column_CommentID, Comment_Column_DateCreated, Comment_Column_IsDeleted, Comment_Column_Content, Comment_Column_ObjectType, Comment_Column_ObjectID} Comment_Column_Types = map[query.Column]string{"CommentID": "%d", "DateCreated": "%d", "IsDeleted": "%d", "Content": "%s", "ObjectType": "%d", "ObjectID": "%d"} Comment_UpdateColumns = []query.Column{Comment_Column_Content, Comment_Column_ObjectType, Comment_Column_ObjectID} Comment_InsertColumns = []query.Column{Comment_Column_DateCreated, Comment_Column_Content, Comment_Column_ObjectType, Comment_Column_ObjectID} Comment_PrimaryKey query.Column = "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_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.