Documentation ¶
Overview ¶
Package tables includes all generated tables for Pixur.
Index ¶
- Variables
- type CustomDataPrimary
- type CustomDataRow
- func (*CustomDataRow) Descriptor() ([]byte, []int)
- func (m *CustomDataRow) GetData() *schema.CustomData
- func (m *CustomDataRow) GetKey1() int64
- func (m *CustomDataRow) GetKey2() int64
- func (m *CustomDataRow) GetKey3() int64
- func (m *CustomDataRow) GetKey4() int64
- func (m *CustomDataRow) GetKey5() int64
- func (m *CustomDataRow) GetKeyType() int64
- func (*CustomDataRow) ProtoMessage()
- func (m *CustomDataRow) Reset()
- func (m *CustomDataRow) String() string
- func (m *CustomDataRow) XXX_DiscardUnknown()
- func (m *CustomDataRow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CustomDataRow) XXX_Merge(src proto.Message)
- func (m *CustomDataRow) XXX_Size() int
- func (m *CustomDataRow) XXX_Unmarshal(b []byte) error
- type Job
- func (j *Job) AllocId() (int64, error)
- func (j *Job) Commit() error
- func (j *Job) DeleteCustomData(key CustomDataPrimary) error
- func (j *Job) DeletePic(key PicsPrimary) error
- func (j *Job) DeletePicComment(key PicCommentsPrimary) error
- func (j *Job) DeletePicCommentVote(key PicCommentVotesPrimary) error
- func (j *Job) DeletePicIdent(key PicIdentsPrimary) error
- func (j *Job) DeletePicTag(key PicTagsPrimary) error
- func (j *Job) DeletePicVote(key PicVotesPrimary) error
- func (j *Job) DeleteTag(key TagsPrimary) error
- func (j *Job) DeleteUser(key UsersPrimary) error
- func (j *Job) DeleteUserEvent(key UserEventsPrimary) error
- func (j *Job) FindCustomData(opts db.Opts) (rows []*schema.CustomData, err error)
- func (j *Job) FindPicCommentVotes(opts db.Opts) (rows []*schema.PicCommentVote, err error)
- func (j *Job) FindPicComments(opts db.Opts) (rows []*schema.PicComment, err error)
- func (j *Job) FindPicIdents(opts db.Opts) (rows []*schema.PicIdent, err error)
- func (j *Job) FindPicTags(opts db.Opts) (rows []*schema.PicTag, err error)
- func (j *Job) FindPicVotes(opts db.Opts) (rows []*schema.PicVote, err error)
- func (j *Job) FindPics(opts db.Opts) (rows []*schema.Pic, err error)
- func (j *Job) FindTags(opts db.Opts) (rows []*schema.Tag, err error)
- func (j *Job) FindUserEvents(opts db.Opts) (rows []*schema.UserEvent, err error)
- func (j *Job) FindUsers(opts db.Opts) (rows []*schema.User, err error)
- func (j *Job) InsertCustomData(pb *schema.CustomData) error
- func (j *Job) InsertCustomDataRow(row *CustomDataRow) error
- func (j *Job) InsertPic(pb *schema.Pic) error
- func (j *Job) InsertPicComment(pb *schema.PicComment) error
- func (j *Job) InsertPicCommentRow(row *PicCommentRow) error
- func (j *Job) InsertPicCommentVote(pb *schema.PicCommentVote) error
- func (j *Job) InsertPicIdent(pb *schema.PicIdent) error
- func (j *Job) InsertPicIdentRow(row *PicIdentRow) error
- func (j *Job) InsertPicRow(row *PicRow) error
- func (j *Job) InsertPicTag(pb *schema.PicTag) error
- func (j *Job) InsertPicTagRow(row *PicTagRow) error
- func (j *Job) InsertPicVote(pb *schema.PicVote) error
- func (j *Job) InsertPicVoteCommentRow(row *PicVoteCommentRow) error
- func (j *Job) InsertPicVoteRow(row *PicVoteRow) error
- func (j *Job) InsertTag(pb *schema.Tag) error
- func (j *Job) InsertTagRow(row *TagRow) error
- func (j *Job) InsertUser(pb *schema.User) error
- func (j *Job) InsertUserEvent(pb *schema.UserEvent) error
- func (j *Job) InsertUserEventRow(row *UserEventRow) error
- func (j *Job) InsertUserRow(row *UserRow) error
- func (j *Job) Rollback() error
- func (j *Job) ScanCustomData(opts db.Opts, cb func(*schema.CustomData) error) error
- func (j *Job) ScanPicCommentVotes(opts db.Opts, cb func(*schema.PicCommentVote) error) error
- func (j *Job) ScanPicComments(opts db.Opts, cb func(*schema.PicComment) error) error
- func (j *Job) ScanPicIdents(opts db.Opts, cb func(*schema.PicIdent) error) error
- func (j *Job) ScanPicTags(opts db.Opts, cb func(*schema.PicTag) error) error
- func (j *Job) ScanPicVotes(opts db.Opts, cb func(*schema.PicVote) error) error
- func (j *Job) ScanPics(opts db.Opts, cb func(*schema.Pic) error) error
- func (j *Job) ScanTags(opts db.Opts, cb func(*schema.Tag) error) error
- func (j *Job) ScanUserEvents(opts db.Opts, cb func(*schema.UserEvent) error) error
- func (j *Job) ScanUsers(opts db.Opts, cb func(*schema.User) error) error
- func (j *Job) UpdateCustomData(pb *schema.CustomData) error
- func (j *Job) UpdateCustomDataRow(row *CustomDataRow) error
- func (j *Job) UpdatePic(pb *schema.Pic) error
- func (j *Job) UpdatePicComment(pb *schema.PicComment) error
- func (j *Job) UpdatePicCommentRow(row *PicCommentRow) error
- func (j *Job) UpdatePicCommentVote(pb *schema.PicCommentVote) error
- func (j *Job) UpdatePicIdent(pb *schema.PicIdent) error
- func (j *Job) UpdatePicIdentRow(row *PicIdentRow) error
- func (j *Job) UpdatePicRow(row *PicRow) error
- func (j *Job) UpdatePicTag(pb *schema.PicTag) error
- func (j *Job) UpdatePicTagRow(row *PicTagRow) error
- func (j *Job) UpdatePicVote(pb *schema.PicVote) error
- func (j *Job) UpdatePicVoteCommentRow(row *PicVoteCommentRow) error
- func (j *Job) UpdatePicVoteRow(row *PicVoteRow) error
- func (j *Job) UpdateTag(pb *schema.Tag) error
- func (j *Job) UpdateTagRow(row *TagRow) error
- func (j *Job) UpdateUser(pb *schema.User) error
- func (j *Job) UpdateUserEvent(pb *schema.UserEvent) error
- func (j *Job) UpdateUserEventRow(row *UserEventRow) error
- func (j *Job) UpdateUserRow(row *UserRow) error
- type JobBeginner
- type PicCommentRow
- func (*PicCommentRow) Descriptor() ([]byte, []int)
- func (m *PicCommentRow) GetCommentId() int64
- func (m *PicCommentRow) GetData() *schema.PicComment
- func (m *PicCommentRow) GetPicId() int64
- func (*PicCommentRow) ProtoMessage()
- func (m *PicCommentRow) Reset()
- func (m *PicCommentRow) String() string
- func (m *PicCommentRow) XXX_DiscardUnknown()
- func (m *PicCommentRow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PicCommentRow) XXX_Merge(src proto.Message)
- func (m *PicCommentRow) XXX_Size() int
- func (m *PicCommentRow) XXX_Unmarshal(b []byte) error
- type PicCommentVotesPrimary
- type PicCommentsCommentId
- type PicCommentsPrimary
- type PicIdentRow
- func (*PicIdentRow) Descriptor() ([]byte, []int)
- func (m *PicIdentRow) GetData() *schema.PicIdent
- func (m *PicIdentRow) GetPicId() int64
- func (m *PicIdentRow) GetType() schema.PicIdent_Type
- func (m *PicIdentRow) GetValue() []byte
- func (*PicIdentRow) ProtoMessage()
- func (m *PicIdentRow) Reset()
- func (m *PicIdentRow) String() string
- func (m *PicIdentRow) XXX_DiscardUnknown()
- func (m *PicIdentRow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PicIdentRow) XXX_Merge(src proto.Message)
- func (m *PicIdentRow) XXX_Size() int
- func (m *PicIdentRow) XXX_Unmarshal(b []byte) error
- type PicIdentsIdent
- type PicIdentsPrimary
- type PicRow
- func (*PicRow) Descriptor() ([]byte, []int)
- func (m *PicRow) GetData() *schema.Pic
- func (m *PicRow) GetId() int64
- func (m *PicRow) GetIndexOrder() int64
- func (m *PicRow) GetSchedOrder() int32
- func (m *PicRow) GetScoreOrder() int32
- func (*PicRow) ProtoMessage()
- func (m *PicRow) Reset()
- func (m *PicRow) String() string
- func (m *PicRow) XXX_DiscardUnknown()
- func (m *PicRow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PicRow) XXX_Merge(src proto.Message)
- func (m *PicRow) XXX_Size() int
- func (m *PicRow) XXX_Unmarshal(b []byte) error
- type PicTagRow
- func (*PicTagRow) Descriptor() ([]byte, []int)
- func (m *PicTagRow) GetData() *schema.PicTag
- func (m *PicTagRow) GetPicId() int64
- func (m *PicTagRow) GetTagId() int64
- func (*PicTagRow) ProtoMessage()
- func (m *PicTagRow) Reset()
- func (m *PicTagRow) String() string
- func (m *PicTagRow) XXX_DiscardUnknown()
- func (m *PicTagRow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PicTagRow) XXX_Merge(src proto.Message)
- func (m *PicTagRow) XXX_Size() int
- func (m *PicTagRow) XXX_Unmarshal(b []byte) error
- type PicTagsPrimary
- type PicVoteCommentRow
- func (*PicVoteCommentRow) Descriptor() ([]byte, []int)
- func (m *PicVoteCommentRow) GetCommentId() int64
- func (m *PicVoteCommentRow) GetData() *schema.PicCommentVote
- func (m *PicVoteCommentRow) GetIndex() int64
- func (m *PicVoteCommentRow) GetPicId() int64
- func (m *PicVoteCommentRow) GetUserId() int64
- func (*PicVoteCommentRow) ProtoMessage()
- func (m *PicVoteCommentRow) Reset()
- func (m *PicVoteCommentRow) String() string
- func (m *PicVoteCommentRow) XXX_DiscardUnknown()
- func (m *PicVoteCommentRow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PicVoteCommentRow) XXX_Merge(src proto.Message)
- func (m *PicVoteCommentRow) XXX_Size() int
- func (m *PicVoteCommentRow) XXX_Unmarshal(b []byte) error
- type PicVoteRow
- func (*PicVoteRow) Descriptor() ([]byte, []int)
- func (m *PicVoteRow) GetData() *schema.PicVote
- func (m *PicVoteRow) GetIndex() int64
- func (m *PicVoteRow) GetPicId() int64
- func (m *PicVoteRow) GetUserId() int64
- func (*PicVoteRow) ProtoMessage()
- func (m *PicVoteRow) Reset()
- func (m *PicVoteRow) String() string
- func (m *PicVoteRow) XXX_DiscardUnknown()
- func (m *PicVoteRow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PicVoteRow) XXX_Merge(src proto.Message)
- func (m *PicVoteRow) XXX_Size() int
- func (m *PicVoteRow) XXX_Unmarshal(b []byte) error
- type PicVotesPrimary
- type PicVotesUserId
- type PicsIndexOrder
- type PicsPrimary
- type PicsSchedOrder
- type PicsScoreOrder
- type TagRow
- func (*TagRow) Descriptor() ([]byte, []int)
- func (m *TagRow) GetData() *schema.Tag
- func (m *TagRow) GetId() int64
- func (m *TagRow) GetName() string
- func (*TagRow) ProtoMessage()
- func (m *TagRow) Reset()
- func (m *TagRow) String() string
- func (m *TagRow) XXX_DiscardUnknown()
- func (m *TagRow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TagRow) XXX_Merge(src proto.Message)
- func (m *TagRow) XXX_Size() int
- func (m *TagRow) XXX_Unmarshal(b []byte) error
- type TagsName
- type TagsPrimary
- type UserEventRow
- func (*UserEventRow) Descriptor() ([]byte, []int)
- func (m *UserEventRow) GetCreatedTs() int64
- func (m *UserEventRow) GetData() *schema.UserEvent
- func (m *UserEventRow) GetIndex() int64
- func (m *UserEventRow) GetUserId() int64
- func (*UserEventRow) ProtoMessage()
- func (m *UserEventRow) Reset()
- func (m *UserEventRow) String() string
- func (m *UserEventRow) XXX_DiscardUnknown()
- func (m *UserEventRow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UserEventRow) XXX_Merge(src proto.Message)
- func (m *UserEventRow) XXX_Size() int
- func (m *UserEventRow) XXX_Unmarshal(b []byte) error
- type UserEventsPrimary
- type UserRow
- func (*UserRow) Descriptor() ([]byte, []int)
- func (m *UserRow) GetData() *schema.User
- func (m *UserRow) GetId() int64
- func (m *UserRow) GetIdent() string
- func (*UserRow) ProtoMessage()
- func (m *UserRow) Reset()
- func (m *UserRow) String() string
- func (m *UserRow) XXX_DiscardUnknown()
- func (m *UserRow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UserRow) XXX_Merge(src proto.Message)
- func (m *UserRow) XXX_Size() int
- func (m *UserRow) XXX_Unmarshal(b []byte) error
- type UsersIdent
- type UsersPrimary
Constants ¶
This section is empty.
Variables ¶
View Source
var SqlInitTables = map[string][]string{
"cockroach": {
"INSERT INTO \"_SequenceTable\" (\"the_sequence\") VALUES (1);",
},
"mysql": {
"INSERT INTO `_SequenceTable` (`the_sequence`) VALUES (1);",
},
"postgres": {
"INSERT INTO \"_SequenceTable\" (\"the_sequence\") VALUES (1);",
},
"sqlite3": {
"INSERT INTO \"_SequenceTable\" (\"the_sequence\") VALUES (1);",
},
}
View Source
var SqlTables = map[string][]string{
"cockroach": {
"CREATE TABLE \"Pics\" (" +
"\"id\" bigint NOT NULL, " +
"\"index_order\" bigint NOT NULL, " +
"\"score_order\" integer NOT NULL, " +
"\"sched_order\" integer NOT NULL, " +
"\"data\" bytea NOT NULL, " +
"PRIMARY KEY(\"id\")" +
");",
"CREATE INDEX \"PicsIndexOrder\" ON \"Pics\" (\"index_order\",\"id\");",
"CREATE INDEX \"PicsScoreOrder\" ON \"Pics\" (\"score_order\",\"id\");",
"CREATE INDEX \"PicsSchedOrder\" ON \"Pics\" (\"sched_order\",\"id\");",
"CREATE TABLE \"Tags\" (" +
"\"id\" bigint NOT NULL, " +
"\"name\" bytea NOT NULL, " +
"\"data\" bytea NOT NULL, " +
"UNIQUE(\"name\"), " +
"PRIMARY KEY(\"id\")" +
");",
"CREATE TABLE \"PicTags\" (" +
"\"pic_id\" bigint NOT NULL, " +
"\"tag_id\" bigint NOT NULL, " +
"\"data\" bytea NOT NULL, " +
"PRIMARY KEY(\"pic_id\",\"tag_id\")" +
");",
"CREATE TABLE \"PicIdents\" (" +
"\"pic_id\" bigint NOT NULL, " +
"\"type\" integer NOT NULL, " +
"\"value\" bytea NOT NULL, " +
"\"data\" bytea NOT NULL, " +
"PRIMARY KEY(\"pic_id\",\"type\",\"value\")" +
");",
"CREATE INDEX \"PicIdentsIdent\" ON \"PicIdents\" (\"type\",\"value\");",
"CREATE TABLE \"PicComments\" (" +
"\"pic_id\" bigint NOT NULL, " +
"\"comment_id\" bigint NOT NULL, " +
"\"data\" bytea NOT NULL, " +
"UNIQUE(\"comment_id\"), " +
"PRIMARY KEY(\"pic_id\",\"comment_id\")" +
");",
"CREATE TABLE \"PicVotes\" (" +
"\"pic_id\" bigint NOT NULL, " +
"\"user_id\" bigint NOT NULL, " +
"\"index\" bigint NOT NULL, " +
"\"data\" bytea NOT NULL, " +
"UNIQUE(\"user_id\",\"pic_id\",\"index\"), " +
"PRIMARY KEY(\"pic_id\",\"user_id\",\"index\")" +
");",
"CREATE TABLE \"PicCommentVotes\" (" +
"\"pic_id\" bigint NOT NULL, " +
"\"comment_id\" bigint NOT NULL, " +
"\"user_id\" bigint NOT NULL, " +
"\"index\" bigint NOT NULL, " +
"\"data\" bytea NOT NULL, " +
"PRIMARY KEY(\"pic_id\",\"comment_id\",\"user_id\",\"index\")" +
");",
"CREATE TABLE \"Users\" (" +
"\"id\" bigint NOT NULL, " +
"\"ident\" bytea NOT NULL, " +
"\"data\" bytea NOT NULL, " +
"UNIQUE(\"ident\"), " +
"PRIMARY KEY(\"id\")" +
");",
"CREATE TABLE \"UserEvents\" (" +
"\"user_id\" bigint NOT NULL, " +
"\"created_ts\" bigint NOT NULL, " +
"\"index\" bigint NOT NULL, " +
"\"data\" bytea NOT NULL, " +
"PRIMARY KEY(\"user_id\",\"created_ts\",\"index\")" +
");",
"CREATE TABLE \"CustomData\" (" +
"\"key_type\" bigint NOT NULL, " +
"\"key1\" bigint NOT NULL, " +
"\"key2\" bigint NOT NULL, " +
"\"key3\" bigint NOT NULL, " +
"\"key4\" bigint NOT NULL, " +
"\"key5\" bigint NOT NULL, " +
"\"data\" bytea NOT NULL, " +
"PRIMARY KEY(\"key_type\",\"key1\",\"key2\",\"key3\",\"key4\",\"key5\")" +
");",
"CREATE TABLE \"_SequenceTable\" (\"the_sequence\" bigint NOT NULL);",
},
"mysql": {
"CREATE TABLE `Pics` (" +
"`id` bigint(20) NOT NULL, " +
"`index_order` bigint(20) NOT NULL, " +
"`score_order` int NOT NULL, " +
"`sched_order` int NOT NULL, " +
"`data` blob NOT NULL, " +
"PRIMARY KEY(`id`)" +
");",
"CREATE INDEX `PicsIndexOrder` ON `Pics` (`index_order`,`id`);",
"CREATE INDEX `PicsScoreOrder` ON `Pics` (`score_order`,`id`);",
"CREATE INDEX `PicsSchedOrder` ON `Pics` (`sched_order`,`id`);",
"CREATE TABLE `Tags` (" +
"`id` bigint(20) NOT NULL, " +
"`name` blob NOT NULL, " +
"`data` blob NOT NULL, " +
"UNIQUE(`name`(255)), " +
"PRIMARY KEY(`id`)" +
");",
"CREATE TABLE `PicTags` (" +
"`pic_id` bigint(20) NOT NULL, " +
"`tag_id` bigint(20) NOT NULL, " +
"`data` blob NOT NULL, " +
"PRIMARY KEY(`pic_id`,`tag_id`)" +
");",
"CREATE TABLE `PicIdents` (" +
"`pic_id` bigint(20) NOT NULL, " +
"`type` int NOT NULL, " +
"`value` blob NOT NULL, " +
"`data` blob NOT NULL, " +
"PRIMARY KEY(`pic_id`,`type`,`value`(255))" +
");",
"CREATE INDEX `PicIdentsIdent` ON `PicIdents` (`type`,`value`(255));",
"CREATE TABLE `PicComments` (" +
"`pic_id` bigint(20) NOT NULL, " +
"`comment_id` bigint(20) NOT NULL, " +
"`data` blob NOT NULL, " +
"UNIQUE(`comment_id`), " +
"PRIMARY KEY(`pic_id`,`comment_id`)" +
");",
"CREATE TABLE `PicVotes` (" +
"`pic_id` bigint(20) NOT NULL, " +
"`user_id` bigint(20) NOT NULL, " +
"`index` bigint(20) NOT NULL, " +
"`data` blob NOT NULL, " +
"UNIQUE(`user_id`,`pic_id`,`index`), " +
"PRIMARY KEY(`pic_id`,`user_id`,`index`)" +
");",
"CREATE TABLE `PicCommentVotes` (" +
"`pic_id` bigint(20) NOT NULL, " +
"`comment_id` bigint(20) NOT NULL, " +
"`user_id` bigint(20) NOT NULL, " +
"`index` bigint(20) NOT NULL, " +
"`data` blob NOT NULL, " +
"PRIMARY KEY(`pic_id`,`comment_id`,`user_id`,`index`)" +
");",
"CREATE TABLE `Users` (" +
"`id` bigint(20) NOT NULL, " +
"`ident` blob NOT NULL, " +
"`data` blob NOT NULL, " +
"UNIQUE(`ident`(255)), " +
"PRIMARY KEY(`id`)" +
");",
"CREATE TABLE `UserEvents` (" +
"`user_id` bigint(20) NOT NULL, " +
"`created_ts` bigint(20) NOT NULL, " +
"`index` bigint(20) NOT NULL, " +
"`data` blob NOT NULL, " +
"PRIMARY KEY(`user_id`,`created_ts`,`index`)" +
");",
"CREATE TABLE `CustomData` (" +
"`key_type` bigint(20) NOT NULL, " +
"`key1` bigint(20) NOT NULL, " +
"`key2` bigint(20) NOT NULL, " +
"`key3` bigint(20) NOT NULL, " +
"`key4` bigint(20) NOT NULL, " +
"`key5` bigint(20) NOT NULL, " +
"`data` blob NOT NULL, " +
"PRIMARY KEY(`key_type`,`key1`,`key2`,`key3`,`key4`,`key5`)" +
");",
"CREATE TABLE `_SequenceTable` (`the_sequence` bigint(20) NOT NULL);",
},
"postgres": {
"CREATE TABLE \"Pics\" (" +
"\"id\" bigint NOT NULL, " +
"\"index_order\" bigint NOT NULL, " +
"\"score_order\" integer NOT NULL, " +
"\"sched_order\" integer NOT NULL, " +
"\"data\" bytea NOT NULL, " +
"PRIMARY KEY(\"id\")" +
");",
"CREATE INDEX \"PicsIndexOrder\" ON \"Pics\" (\"index_order\",\"id\");",
"CREATE INDEX \"PicsScoreOrder\" ON \"Pics\" (\"score_order\",\"id\");",
"CREATE INDEX \"PicsSchedOrder\" ON \"Pics\" (\"sched_order\",\"id\");",
"CREATE TABLE \"Tags\" (" +
"\"id\" bigint NOT NULL, " +
"\"name\" bytea NOT NULL, " +
"\"data\" bytea NOT NULL, " +
"UNIQUE(\"name\"), " +
"PRIMARY KEY(\"id\")" +
");",
"CREATE TABLE \"PicTags\" (" +
"\"pic_id\" bigint NOT NULL, " +
"\"tag_id\" bigint NOT NULL, " +
"\"data\" bytea NOT NULL, " +
"PRIMARY KEY(\"pic_id\",\"tag_id\")" +
");",
"CREATE TABLE \"PicIdents\" (" +
"\"pic_id\" bigint NOT NULL, " +
"\"type\" integer NOT NULL, " +
"\"value\" bytea NOT NULL, " +
"\"data\" bytea NOT NULL, " +
"PRIMARY KEY(\"pic_id\",\"type\",\"value\")" +
");",
"CREATE INDEX \"PicIdentsIdent\" ON \"PicIdents\" (\"type\",\"value\");",
"CREATE TABLE \"PicComments\" (" +
"\"pic_id\" bigint NOT NULL, " +
"\"comment_id\" bigint NOT NULL, " +
"\"data\" bytea NOT NULL, " +
"UNIQUE(\"comment_id\"), " +
"PRIMARY KEY(\"pic_id\",\"comment_id\")" +
");",
"CREATE TABLE \"PicVotes\" (" +
"\"pic_id\" bigint NOT NULL, " +
"\"user_id\" bigint NOT NULL, " +
"\"index\" bigint NOT NULL, " +
"\"data\" bytea NOT NULL, " +
"UNIQUE(\"user_id\",\"pic_id\",\"index\"), " +
"PRIMARY KEY(\"pic_id\",\"user_id\",\"index\")" +
");",
"CREATE TABLE \"PicCommentVotes\" (" +
"\"pic_id\" bigint NOT NULL, " +
"\"comment_id\" bigint NOT NULL, " +
"\"user_id\" bigint NOT NULL, " +
"\"index\" bigint NOT NULL, " +
"\"data\" bytea NOT NULL, " +
"PRIMARY KEY(\"pic_id\",\"comment_id\",\"user_id\",\"index\")" +
");",
"CREATE TABLE \"Users\" (" +
"\"id\" bigint NOT NULL, " +
"\"ident\" bytea NOT NULL, " +
"\"data\" bytea NOT NULL, " +
"UNIQUE(\"ident\"), " +
"PRIMARY KEY(\"id\")" +
");",
"CREATE TABLE \"UserEvents\" (" +
"\"user_id\" bigint NOT NULL, " +
"\"created_ts\" bigint NOT NULL, " +
"\"index\" bigint NOT NULL, " +
"\"data\" bytea NOT NULL, " +
"PRIMARY KEY(\"user_id\",\"created_ts\",\"index\")" +
");",
"CREATE TABLE \"CustomData\" (" +
"\"key_type\" bigint NOT NULL, " +
"\"key1\" bigint NOT NULL, " +
"\"key2\" bigint NOT NULL, " +
"\"key3\" bigint NOT NULL, " +
"\"key4\" bigint NOT NULL, " +
"\"key5\" bigint NOT NULL, " +
"\"data\" bytea NOT NULL, " +
"PRIMARY KEY(\"key_type\",\"key1\",\"key2\",\"key3\",\"key4\",\"key5\")" +
");",
"CREATE TABLE \"_SequenceTable\" (\"the_sequence\" bigint NOT NULL);",
},
"sqlite3": {
"CREATE TABLE \"Pics\" (" +
"\"id\" integer NOT NULL, " +
"\"index_order\" integer NOT NULL, " +
"\"score_order\" integer NOT NULL, " +
"\"sched_order\" integer NOT NULL, " +
"\"data\" blob NOT NULL, " +
"PRIMARY KEY(\"id\")" +
");",
"CREATE INDEX \"PicsIndexOrder\" ON \"Pics\" (\"index_order\",\"id\");",
"CREATE INDEX \"PicsScoreOrder\" ON \"Pics\" (\"score_order\",\"id\");",
"CREATE INDEX \"PicsSchedOrder\" ON \"Pics\" (\"sched_order\",\"id\");",
"CREATE TABLE \"Tags\" (" +
"\"id\" integer NOT NULL, " +
"\"name\" blob NOT NULL, " +
"\"data\" blob NOT NULL, " +
"UNIQUE(\"name\"), " +
"PRIMARY KEY(\"id\")" +
");",
"CREATE TABLE \"PicTags\" (" +
"\"pic_id\" integer NOT NULL, " +
"\"tag_id\" integer NOT NULL, " +
"\"data\" blob NOT NULL, " +
"PRIMARY KEY(\"pic_id\",\"tag_id\")" +
");",
"CREATE TABLE \"PicIdents\" (" +
"\"pic_id\" integer NOT NULL, " +
"\"type\" integer NOT NULL, " +
"\"value\" blob NOT NULL, " +
"\"data\" blob NOT NULL, " +
"PRIMARY KEY(\"pic_id\",\"type\",\"value\")" +
");",
"CREATE INDEX \"PicIdentsIdent\" ON \"PicIdents\" (\"type\",\"value\");",
"CREATE TABLE \"PicComments\" (" +
"\"pic_id\" integer NOT NULL, " +
"\"comment_id\" integer NOT NULL, " +
"\"data\" blob NOT NULL, " +
"UNIQUE(\"comment_id\"), " +
"PRIMARY KEY(\"pic_id\",\"comment_id\")" +
");",
"CREATE TABLE \"PicVotes\" (" +
"\"pic_id\" integer NOT NULL, " +
"\"user_id\" integer NOT NULL, " +
"\"index\" integer NOT NULL, " +
"\"data\" blob NOT NULL, " +
"UNIQUE(\"user_id\",\"pic_id\",\"index\"), " +
"PRIMARY KEY(\"pic_id\",\"user_id\",\"index\")" +
");",
"CREATE TABLE \"PicCommentVotes\" (" +
"\"pic_id\" integer NOT NULL, " +
"\"comment_id\" integer NOT NULL, " +
"\"user_id\" integer NOT NULL, " +
"\"index\" integer NOT NULL, " +
"\"data\" blob NOT NULL, " +
"PRIMARY KEY(\"pic_id\",\"comment_id\",\"user_id\",\"index\")" +
");",
"CREATE TABLE \"Users\" (" +
"\"id\" integer NOT NULL, " +
"\"ident\" blob NOT NULL, " +
"\"data\" blob NOT NULL, " +
"UNIQUE(\"ident\"), " +
"PRIMARY KEY(\"id\")" +
");",
"CREATE TABLE \"UserEvents\" (" +
"\"user_id\" integer NOT NULL, " +
"\"created_ts\" integer NOT NULL, " +
"\"index\" integer NOT NULL, " +
"\"data\" blob NOT NULL, " +
"PRIMARY KEY(\"user_id\",\"created_ts\",\"index\")" +
");",
"CREATE TABLE \"CustomData\" (" +
"\"key_type\" integer NOT NULL, " +
"\"key1\" integer NOT NULL, " +
"\"key2\" integer NOT NULL, " +
"\"key3\" integer NOT NULL, " +
"\"key4\" integer NOT NULL, " +
"\"key5\" integer NOT NULL, " +
"\"data\" blob NOT NULL, " +
"PRIMARY KEY(\"key_type\",\"key1\",\"key2\",\"key3\",\"key4\",\"key5\")" +
");",
"CREATE TABLE \"_SequenceTable\" (\"the_sequence\" integer NOT NULL);",
},
}
Functions ¶
This section is empty.
Types ¶
type CustomDataPrimary ¶
type CustomDataPrimary struct { KeyType *int64 Key1 *int64 Key2 *int64 Key3 *int64 Key4 *int64 Key5 *int64 }
func KeyForCustomData ¶
func KeyForCustomData(pb *schema.CustomData) CustomDataPrimary
func (CustomDataPrimary) Cols ¶
func (idx CustomDataPrimary) Cols() []string
func (CustomDataPrimary) Unique ¶
func (_ CustomDataPrimary) Unique()
func (CustomDataPrimary) Vals ¶
func (idx CustomDataPrimary) Vals() (vals []interface{})
type CustomDataRow ¶
type CustomDataRow struct { KeyType int64 `protobuf:"varint,1,opt,name=key_type,json=keyType,proto3" json:"key_type,omitempty"` Key1 int64 `protobuf:"varint,2,opt,name=key1,proto3" json:"key1,omitempty"` Key2 int64 `protobuf:"varint,3,opt,name=key2,proto3" json:"key2,omitempty"` Key3 int64 `protobuf:"varint,4,opt,name=key3,proto3" json:"key3,omitempty"` Key4 int64 `protobuf:"varint,5,opt,name=key4,proto3" json:"key4,omitempty"` Key5 int64 `protobuf:"varint,6,opt,name=key5,proto3" json:"key5,omitempty"` Data *schema.CustomData `protobuf:"bytes,7,opt,name=data,proto3" json:"data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CustomDataRow) Descriptor ¶
func (*CustomDataRow) Descriptor() ([]byte, []int)
func (*CustomDataRow) GetData ¶
func (m *CustomDataRow) GetData() *schema.CustomData
func (*CustomDataRow) GetKey1 ¶
func (m *CustomDataRow) GetKey1() int64
func (*CustomDataRow) GetKey2 ¶
func (m *CustomDataRow) GetKey2() int64
func (*CustomDataRow) GetKey3 ¶
func (m *CustomDataRow) GetKey3() int64
func (*CustomDataRow) GetKey4 ¶
func (m *CustomDataRow) GetKey4() int64
func (*CustomDataRow) GetKey5 ¶
func (m *CustomDataRow) GetKey5() int64
func (*CustomDataRow) GetKeyType ¶
func (m *CustomDataRow) GetKeyType() int64
func (*CustomDataRow) ProtoMessage ¶
func (*CustomDataRow) ProtoMessage()
func (*CustomDataRow) Reset ¶
func (m *CustomDataRow) Reset()
func (*CustomDataRow) String ¶
func (m *CustomDataRow) String() string
func (*CustomDataRow) XXX_DiscardUnknown ¶
func (m *CustomDataRow) XXX_DiscardUnknown()
func (*CustomDataRow) XXX_Marshal ¶
func (m *CustomDataRow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CustomDataRow) XXX_Merge ¶
func (m *CustomDataRow) XXX_Merge(src proto.Message)
func (*CustomDataRow) XXX_Size ¶
func (m *CustomDataRow) XXX_Size() int
func (*CustomDataRow) XXX_Unmarshal ¶
func (m *CustomDataRow) XXX_Unmarshal(b []byte) error
type Job ¶
type Job struct {
// contains filtered or unexported fields
}
func NewReadonlyJob ¶
func NewReadonlyJob(ctx context.Context, beg JobBeginner) (*Job, error)
func (*Job) DeleteCustomData ¶
func (j *Job) DeleteCustomData(key CustomDataPrimary) error
func (*Job) DeletePic ¶
func (j *Job) DeletePic(key PicsPrimary) error
func (*Job) DeletePicComment ¶
func (j *Job) DeletePicComment(key PicCommentsPrimary) error
func (*Job) DeletePicCommentVote ¶
func (j *Job) DeletePicCommentVote(key PicCommentVotesPrimary) error
func (*Job) DeletePicIdent ¶
func (j *Job) DeletePicIdent(key PicIdentsPrimary) error
func (*Job) DeletePicTag ¶
func (j *Job) DeletePicTag(key PicTagsPrimary) error
func (*Job) DeletePicVote ¶
func (j *Job) DeletePicVote(key PicVotesPrimary) error
func (*Job) DeleteTag ¶
func (j *Job) DeleteTag(key TagsPrimary) error
func (*Job) DeleteUser ¶
func (j *Job) DeleteUser(key UsersPrimary) error
func (*Job) DeleteUserEvent ¶
func (j *Job) DeleteUserEvent(key UserEventsPrimary) error
func (*Job) FindCustomData ¶
func (*Job) FindPicCommentVotes ¶
func (*Job) FindPicComments ¶
func (*Job) FindPicIdents ¶
func (*Job) FindPicTags ¶
func (*Job) FindPicVotes ¶
func (*Job) FindUserEvents ¶
func (*Job) InsertCustomData ¶
func (j *Job) InsertCustomData(pb *schema.CustomData) error
func (*Job) InsertCustomDataRow ¶
func (j *Job) InsertCustomDataRow(row *CustomDataRow) error
func (*Job) InsertPicComment ¶
func (j *Job) InsertPicComment(pb *schema.PicComment) error
func (*Job) InsertPicCommentRow ¶
func (j *Job) InsertPicCommentRow(row *PicCommentRow) error
func (*Job) InsertPicCommentVote ¶
func (j *Job) InsertPicCommentVote(pb *schema.PicCommentVote) error
func (*Job) InsertPicIdentRow ¶
func (j *Job) InsertPicIdentRow(row *PicIdentRow) error
func (*Job) InsertPicRow ¶
func (*Job) InsertPicTagRow ¶
func (*Job) InsertPicVoteCommentRow ¶
func (j *Job) InsertPicVoteCommentRow(row *PicVoteCommentRow) error
func (*Job) InsertPicVoteRow ¶
func (j *Job) InsertPicVoteRow(row *PicVoteRow) error
func (*Job) InsertTagRow ¶
func (*Job) InsertUserEventRow ¶
func (j *Job) InsertUserEventRow(row *UserEventRow) error
func (*Job) InsertUserRow ¶
func (*Job) ScanCustomData ¶
func (*Job) ScanPicCommentVotes ¶
func (*Job) ScanPicComments ¶
func (*Job) ScanPicIdents ¶
func (*Job) ScanPicTags ¶
func (*Job) ScanPicVotes ¶
func (*Job) ScanUserEvents ¶
func (*Job) UpdateCustomData ¶
func (j *Job) UpdateCustomData(pb *schema.CustomData) error
func (*Job) UpdateCustomDataRow ¶
func (j *Job) UpdateCustomDataRow(row *CustomDataRow) error
func (*Job) UpdatePicComment ¶
func (j *Job) UpdatePicComment(pb *schema.PicComment) error
func (*Job) UpdatePicCommentRow ¶
func (j *Job) UpdatePicCommentRow(row *PicCommentRow) error
func (*Job) UpdatePicCommentVote ¶
func (j *Job) UpdatePicCommentVote(pb *schema.PicCommentVote) error
func (*Job) UpdatePicIdentRow ¶
func (j *Job) UpdatePicIdentRow(row *PicIdentRow) error
func (*Job) UpdatePicRow ¶
func (*Job) UpdatePicTagRow ¶
func (*Job) UpdatePicVoteCommentRow ¶
func (j *Job) UpdatePicVoteCommentRow(row *PicVoteCommentRow) error
func (*Job) UpdatePicVoteRow ¶
func (j *Job) UpdatePicVoteRow(row *PicVoteRow) error
func (*Job) UpdateTagRow ¶
func (*Job) UpdateUserEventRow ¶
func (j *Job) UpdateUserEventRow(row *UserEventRow) error
func (*Job) UpdateUserRow ¶
type JobBeginner ¶
type JobBeginner interface { db.Beginner db.DBAdaptable }
type PicCommentRow ¶
type PicCommentRow struct { PicId int64 `protobuf:"varint,1,opt,name=pic_id,json=picId,proto3" json:"pic_id,omitempty"` CommentId int64 `protobuf:"varint,2,opt,name=comment_id,json=commentId,proto3" json:"comment_id,omitempty"` Data *schema.PicComment `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PicCommentRow) Descriptor ¶
func (*PicCommentRow) Descriptor() ([]byte, []int)
func (*PicCommentRow) GetCommentId ¶
func (m *PicCommentRow) GetCommentId() int64
func (*PicCommentRow) GetData ¶
func (m *PicCommentRow) GetData() *schema.PicComment
func (*PicCommentRow) GetPicId ¶
func (m *PicCommentRow) GetPicId() int64
func (*PicCommentRow) ProtoMessage ¶
func (*PicCommentRow) ProtoMessage()
func (*PicCommentRow) Reset ¶
func (m *PicCommentRow) Reset()
func (*PicCommentRow) String ¶
func (m *PicCommentRow) String() string
func (*PicCommentRow) XXX_DiscardUnknown ¶
func (m *PicCommentRow) XXX_DiscardUnknown()
func (*PicCommentRow) XXX_Marshal ¶
func (m *PicCommentRow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PicCommentRow) XXX_Merge ¶
func (m *PicCommentRow) XXX_Merge(src proto.Message)
func (*PicCommentRow) XXX_Size ¶
func (m *PicCommentRow) XXX_Size() int
func (*PicCommentRow) XXX_Unmarshal ¶
func (m *PicCommentRow) XXX_Unmarshal(b []byte) error
type PicCommentVotesPrimary ¶
func KeyForPicCommentVote ¶
func KeyForPicCommentVote(pb *schema.PicCommentVote) PicCommentVotesPrimary
func (PicCommentVotesPrimary) Cols ¶
func (idx PicCommentVotesPrimary) Cols() []string
func (PicCommentVotesPrimary) Unique ¶
func (_ PicCommentVotesPrimary) Unique()
func (PicCommentVotesPrimary) Vals ¶
func (idx PicCommentVotesPrimary) Vals() (vals []interface{})
type PicCommentsCommentId ¶
type PicCommentsCommentId struct {
CommentId *int64
}
func (PicCommentsCommentId) Cols ¶
func (idx PicCommentsCommentId) Cols() []string
func (PicCommentsCommentId) Unique ¶
func (_ PicCommentsCommentId) Unique()
func (PicCommentsCommentId) Vals ¶
func (idx PicCommentsCommentId) Vals() (vals []interface{})
type PicCommentsPrimary ¶
func KeyForPicComment ¶
func KeyForPicComment(pb *schema.PicComment) PicCommentsPrimary
func (PicCommentsPrimary) Cols ¶
func (idx PicCommentsPrimary) Cols() []string
func (PicCommentsPrimary) Unique ¶
func (_ PicCommentsPrimary) Unique()
func (PicCommentsPrimary) Vals ¶
func (idx PicCommentsPrimary) Vals() (vals []interface{})
type PicIdentRow ¶
type PicIdentRow struct { PicId int64 `protobuf:"varint,1,opt,name=pic_id,json=picId,proto3" json:"pic_id,omitempty"` Type schema.PicIdent_Type `protobuf:"varint,2,opt,name=type,proto3,enum=pixur.be.schema.PicIdent_Type" json:"type,omitempty"` Value []byte `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` Data *schema.PicIdent `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PicIdentRow) Descriptor ¶
func (*PicIdentRow) Descriptor() ([]byte, []int)
func (*PicIdentRow) GetData ¶
func (m *PicIdentRow) GetData() *schema.PicIdent
func (*PicIdentRow) GetPicId ¶
func (m *PicIdentRow) GetPicId() int64
func (*PicIdentRow) GetType ¶
func (m *PicIdentRow) GetType() schema.PicIdent_Type
func (*PicIdentRow) GetValue ¶
func (m *PicIdentRow) GetValue() []byte
func (*PicIdentRow) ProtoMessage ¶
func (*PicIdentRow) ProtoMessage()
func (*PicIdentRow) Reset ¶
func (m *PicIdentRow) Reset()
func (*PicIdentRow) String ¶
func (m *PicIdentRow) String() string
func (*PicIdentRow) XXX_DiscardUnknown ¶
func (m *PicIdentRow) XXX_DiscardUnknown()
func (*PicIdentRow) XXX_Marshal ¶
func (m *PicIdentRow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PicIdentRow) XXX_Merge ¶
func (m *PicIdentRow) XXX_Merge(src proto.Message)
func (*PicIdentRow) XXX_Size ¶
func (m *PicIdentRow) XXX_Size() int
func (*PicIdentRow) XXX_Unmarshal ¶
func (m *PicIdentRow) XXX_Unmarshal(b []byte) error
type PicIdentsIdent ¶
type PicIdentsIdent struct { Type *schema.PicIdent_Type Value *[]byte }
func (PicIdentsIdent) Cols ¶
func (idx PicIdentsIdent) Cols() []string
func (PicIdentsIdent) Vals ¶
func (idx PicIdentsIdent) Vals() (vals []interface{})
type PicIdentsPrimary ¶
type PicIdentsPrimary struct { PicId *int64 Type *schema.PicIdent_Type Value *[]byte }
func KeyForPicIdent ¶
func KeyForPicIdent(pb *schema.PicIdent) PicIdentsPrimary
func (PicIdentsPrimary) Cols ¶
func (idx PicIdentsPrimary) Cols() []string
func (PicIdentsPrimary) Unique ¶
func (_ PicIdentsPrimary) Unique()
func (PicIdentsPrimary) Vals ¶
func (idx PicIdentsPrimary) Vals() (vals []interface{})
type PicRow ¶
type PicRow struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` IndexOrder int64 `protobuf:"varint,2,opt,name=index_order,json=indexOrder,proto3" json:"index_order,omitempty"` ScoreOrder int32 `protobuf:"varint,5,opt,name=score_order,json=scoreOrder,proto3" json:"score_order,omitempty"` SchedOrder int32 `protobuf:"varint,6,opt,name=sched_order,json=schedOrder,proto3" json:"sched_order,omitempty"` Data *schema.Pic `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PicRow) Descriptor ¶
func (*PicRow) GetIndexOrder ¶
func (*PicRow) GetSchedOrder ¶
func (*PicRow) GetScoreOrder ¶
func (*PicRow) ProtoMessage ¶
func (*PicRow) ProtoMessage()
func (*PicRow) XXX_DiscardUnknown ¶
func (m *PicRow) XXX_DiscardUnknown()
func (*PicRow) XXX_Marshal ¶
func (*PicRow) XXX_Unmarshal ¶
type PicTagRow ¶
type PicTagRow struct { PicId int64 `protobuf:"varint,1,opt,name=pic_id,json=picId,proto3" json:"pic_id,omitempty"` TagId int64 `protobuf:"varint,2,opt,name=tag_id,json=tagId,proto3" json:"tag_id,omitempty"` Data *schema.PicTag `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PicTagRow) Descriptor ¶
func (*PicTagRow) ProtoMessage ¶
func (*PicTagRow) ProtoMessage()
func (*PicTagRow) XXX_DiscardUnknown ¶
func (m *PicTagRow) XXX_DiscardUnknown()
func (*PicTagRow) XXX_Marshal ¶
func (*PicTagRow) XXX_Unmarshal ¶
type PicTagsPrimary ¶
func KeyForPicTag ¶
func KeyForPicTag(pb *schema.PicTag) PicTagsPrimary
func (PicTagsPrimary) Cols ¶
func (idx PicTagsPrimary) Cols() []string
func (PicTagsPrimary) Unique ¶
func (_ PicTagsPrimary) Unique()
func (PicTagsPrimary) Vals ¶
func (idx PicTagsPrimary) Vals() (vals []interface{})
type PicVoteCommentRow ¶
type PicVoteCommentRow struct { PicId int64 `protobuf:"varint,1,opt,name=pic_id,json=picId,proto3" json:"pic_id,omitempty"` CommentId int64 `protobuf:"varint,2,opt,name=comment_id,json=commentId,proto3" json:"comment_id,omitempty"` UserId int64 `protobuf:"varint,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` Index int64 `protobuf:"varint,4,opt,name=index,proto3" json:"index,omitempty"` Data *schema.PicCommentVote `protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PicVoteCommentRow) Descriptor ¶
func (*PicVoteCommentRow) Descriptor() ([]byte, []int)
func (*PicVoteCommentRow) GetCommentId ¶
func (m *PicVoteCommentRow) GetCommentId() int64
func (*PicVoteCommentRow) GetData ¶
func (m *PicVoteCommentRow) GetData() *schema.PicCommentVote
func (*PicVoteCommentRow) GetIndex ¶
func (m *PicVoteCommentRow) GetIndex() int64
func (*PicVoteCommentRow) GetPicId ¶
func (m *PicVoteCommentRow) GetPicId() int64
func (*PicVoteCommentRow) GetUserId ¶
func (m *PicVoteCommentRow) GetUserId() int64
func (*PicVoteCommentRow) ProtoMessage ¶
func (*PicVoteCommentRow) ProtoMessage()
func (*PicVoteCommentRow) Reset ¶
func (m *PicVoteCommentRow) Reset()
func (*PicVoteCommentRow) String ¶
func (m *PicVoteCommentRow) String() string
func (*PicVoteCommentRow) XXX_DiscardUnknown ¶
func (m *PicVoteCommentRow) XXX_DiscardUnknown()
func (*PicVoteCommentRow) XXX_Marshal ¶
func (m *PicVoteCommentRow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PicVoteCommentRow) XXX_Merge ¶
func (m *PicVoteCommentRow) XXX_Merge(src proto.Message)
func (*PicVoteCommentRow) XXX_Size ¶
func (m *PicVoteCommentRow) XXX_Size() int
func (*PicVoteCommentRow) XXX_Unmarshal ¶
func (m *PicVoteCommentRow) XXX_Unmarshal(b []byte) error
type PicVoteRow ¶
type PicVoteRow struct { PicId int64 `protobuf:"varint,1,opt,name=pic_id,json=picId,proto3" json:"pic_id,omitempty"` UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` Index int64 `protobuf:"varint,4,opt,name=index,proto3" json:"index,omitempty"` Data *schema.PicVote `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PicVoteRow) Descriptor ¶
func (*PicVoteRow) Descriptor() ([]byte, []int)
func (*PicVoteRow) GetData ¶
func (m *PicVoteRow) GetData() *schema.PicVote
func (*PicVoteRow) GetIndex ¶
func (m *PicVoteRow) GetIndex() int64
func (*PicVoteRow) GetPicId ¶
func (m *PicVoteRow) GetPicId() int64
func (*PicVoteRow) GetUserId ¶
func (m *PicVoteRow) GetUserId() int64
func (*PicVoteRow) ProtoMessage ¶
func (*PicVoteRow) ProtoMessage()
func (*PicVoteRow) Reset ¶
func (m *PicVoteRow) Reset()
func (*PicVoteRow) String ¶
func (m *PicVoteRow) String() string
func (*PicVoteRow) XXX_DiscardUnknown ¶
func (m *PicVoteRow) XXX_DiscardUnknown()
func (*PicVoteRow) XXX_Marshal ¶
func (m *PicVoteRow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PicVoteRow) XXX_Merge ¶
func (m *PicVoteRow) XXX_Merge(src proto.Message)
func (*PicVoteRow) XXX_Size ¶
func (m *PicVoteRow) XXX_Size() int
func (*PicVoteRow) XXX_Unmarshal ¶
func (m *PicVoteRow) XXX_Unmarshal(b []byte) error
type PicVotesPrimary ¶
func KeyForPicVote ¶
func KeyForPicVote(pb *schema.PicVote) PicVotesPrimary
func (PicVotesPrimary) Cols ¶
func (idx PicVotesPrimary) Cols() []string
func (PicVotesPrimary) Unique ¶
func (_ PicVotesPrimary) Unique()
func (PicVotesPrimary) Vals ¶
func (idx PicVotesPrimary) Vals() (vals []interface{})
type PicVotesUserId ¶
func (PicVotesUserId) Cols ¶
func (idx PicVotesUserId) Cols() []string
func (PicVotesUserId) Unique ¶
func (_ PicVotesUserId) Unique()
func (PicVotesUserId) Vals ¶
func (idx PicVotesUserId) Vals() (vals []interface{})
type PicsIndexOrder ¶
func (PicsIndexOrder) Cols ¶
func (idx PicsIndexOrder) Cols() []string
func (PicsIndexOrder) Vals ¶
func (idx PicsIndexOrder) Vals() (vals []interface{})
type PicsPrimary ¶
type PicsPrimary struct {
Id *int64
}
func KeyForPic ¶
func KeyForPic(pb *schema.Pic) PicsPrimary
func (PicsPrimary) Cols ¶
func (idx PicsPrimary) Cols() []string
func (PicsPrimary) Unique ¶
func (_ PicsPrimary) Unique()
func (PicsPrimary) Vals ¶
func (idx PicsPrimary) Vals() (vals []interface{})
type PicsSchedOrder ¶
func (PicsSchedOrder) Cols ¶
func (idx PicsSchedOrder) Cols() []string
func (PicsSchedOrder) Vals ¶
func (idx PicsSchedOrder) Vals() (vals []interface{})
type PicsScoreOrder ¶
func (PicsScoreOrder) Cols ¶
func (idx PicsScoreOrder) Cols() []string
func (PicsScoreOrder) Vals ¶
func (idx PicsScoreOrder) Vals() (vals []interface{})
type TagRow ¶
type TagRow struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Data *schema.Tag `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*TagRow) Descriptor ¶
func (*TagRow) ProtoMessage ¶
func (*TagRow) ProtoMessage()
func (*TagRow) XXX_DiscardUnknown ¶
func (m *TagRow) XXX_DiscardUnknown()
func (*TagRow) XXX_Marshal ¶
func (*TagRow) XXX_Unmarshal ¶
type TagsPrimary ¶
type TagsPrimary struct {
Id *int64
}
func KeyForTag ¶
func KeyForTag(pb *schema.Tag) TagsPrimary
func (TagsPrimary) Cols ¶
func (idx TagsPrimary) Cols() []string
func (TagsPrimary) Unique ¶
func (_ TagsPrimary) Unique()
func (TagsPrimary) Vals ¶
func (idx TagsPrimary) Vals() (vals []interface{})
type UserEventRow ¶
type UserEventRow struct { UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` CreatedTs int64 `protobuf:"varint,2,opt,name=created_ts,json=createdTs,proto3" json:"created_ts,omitempty"` Index int64 `protobuf:"varint,3,opt,name=index,proto3" json:"index,omitempty"` Data *schema.UserEvent `protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UserEventRow) Descriptor ¶
func (*UserEventRow) Descriptor() ([]byte, []int)
func (*UserEventRow) GetCreatedTs ¶
func (m *UserEventRow) GetCreatedTs() int64
func (*UserEventRow) GetData ¶
func (m *UserEventRow) GetData() *schema.UserEvent
func (*UserEventRow) GetIndex ¶
func (m *UserEventRow) GetIndex() int64
func (*UserEventRow) GetUserId ¶
func (m *UserEventRow) GetUserId() int64
func (*UserEventRow) ProtoMessage ¶
func (*UserEventRow) ProtoMessage()
func (*UserEventRow) Reset ¶
func (m *UserEventRow) Reset()
func (*UserEventRow) String ¶
func (m *UserEventRow) String() string
func (*UserEventRow) XXX_DiscardUnknown ¶
func (m *UserEventRow) XXX_DiscardUnknown()
func (*UserEventRow) XXX_Marshal ¶
func (m *UserEventRow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UserEventRow) XXX_Merge ¶
func (m *UserEventRow) XXX_Merge(src proto.Message)
func (*UserEventRow) XXX_Size ¶
func (m *UserEventRow) XXX_Size() int
func (*UserEventRow) XXX_Unmarshal ¶
func (m *UserEventRow) XXX_Unmarshal(b []byte) error
type UserEventsPrimary ¶
func KeyForUserEvent ¶
func KeyForUserEvent(pb *schema.UserEvent) UserEventsPrimary
func (UserEventsPrimary) Cols ¶
func (idx UserEventsPrimary) Cols() []string
func (UserEventsPrimary) Unique ¶
func (_ UserEventsPrimary) Unique()
func (UserEventsPrimary) Vals ¶
func (idx UserEventsPrimary) Vals() (vals []interface{})
type UserRow ¶
type UserRow struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Ident string `protobuf:"bytes,2,opt,name=ident,proto3" json:"ident,omitempty"` Data *schema.User `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UserRow) Descriptor ¶
func (*UserRow) ProtoMessage ¶
func (*UserRow) ProtoMessage()
func (*UserRow) XXX_DiscardUnknown ¶
func (m *UserRow) XXX_DiscardUnknown()
func (*UserRow) XXX_Marshal ¶
func (*UserRow) XXX_Unmarshal ¶
type UsersIdent ¶
type UsersIdent struct {
Ident *string
}
func (UsersIdent) Cols ¶
func (idx UsersIdent) Cols() []string
func (UsersIdent) Unique ¶
func (_ UsersIdent) Unique()
func (UsersIdent) Vals ¶
func (idx UsersIdent) Vals() (vals []interface{})
type UsersPrimary ¶
type UsersPrimary struct {
Id *int64
}
func KeyForUser ¶
func KeyForUser(pb *schema.User) UsersPrimary
func (UsersPrimary) Cols ¶
func (idx UsersPrimary) Cols() []string
func (UsersPrimary) Unique ¶
func (_ UsersPrimary) Unique()
func (UsersPrimary) Vals ¶
func (idx UsersPrimary) Vals() (vals []interface{})
Click to show internal directories.
Click to hide internal directories.