tables

package
v0.0.0-...-c945685 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2020 License: Apache-2.0 Imports: 9 Imported by: 6

Documentation

Overview

Package tables includes all generated tables for Pixur.

Index

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 NewJob

func NewJob(ctx context.Context, beg JobBeginner) (*Job, error)

func NewReadonlyJob

func NewReadonlyJob(ctx context.Context, beg JobBeginner) (*Job, error)

func (*Job) AllocId

func (j *Job) AllocId() (int64, error)

func (*Job) Commit

func (j *Job) Commit() 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 (j *Job) FindCustomData(opts db.Opts) (rows []*schema.CustomData, err error)

func (*Job) FindPicCommentVotes

func (j *Job) FindPicCommentVotes(opts db.Opts) (rows []*schema.PicCommentVote, err error)

func (*Job) FindPicComments

func (j *Job) FindPicComments(opts db.Opts) (rows []*schema.PicComment, err error)

func (*Job) FindPicIdents

func (j *Job) FindPicIdents(opts db.Opts) (rows []*schema.PicIdent, err error)

func (*Job) FindPicTags

func (j *Job) FindPicTags(opts db.Opts) (rows []*schema.PicTag, err error)

func (*Job) FindPicVotes

func (j *Job) FindPicVotes(opts db.Opts) (rows []*schema.PicVote, err error)

func (*Job) FindPics

func (j *Job) FindPics(opts db.Opts) (rows []*schema.Pic, err error)

func (*Job) FindTags

func (j *Job) FindTags(opts db.Opts) (rows []*schema.Tag, err error)

func (*Job) FindUserEvents

func (j *Job) FindUserEvents(opts db.Opts) (rows []*schema.UserEvent, err error)

func (*Job) FindUsers

func (j *Job) FindUsers(opts db.Opts) (rows []*schema.User, err error)

func (*Job) InsertCustomData

func (j *Job) InsertCustomData(pb *schema.CustomData) error

func (*Job) InsertCustomDataRow

func (j *Job) InsertCustomDataRow(row *CustomDataRow) error

func (*Job) InsertPic

func (j *Job) InsertPic(pb *schema.Pic) 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) InsertPicIdent

func (j *Job) InsertPicIdent(pb *schema.PicIdent) error

func (*Job) InsertPicIdentRow

func (j *Job) InsertPicIdentRow(row *PicIdentRow) error

func (*Job) InsertPicRow

func (j *Job) InsertPicRow(row *PicRow) error

func (*Job) InsertPicTag

func (j *Job) InsertPicTag(pb *schema.PicTag) error

func (*Job) InsertPicTagRow

func (j *Job) InsertPicTagRow(row *PicTagRow) error

func (*Job) InsertPicVote

func (j *Job) InsertPicVote(pb *schema.PicVote) error

func (*Job) InsertPicVoteCommentRow

func (j *Job) InsertPicVoteCommentRow(row *PicVoteCommentRow) error

func (*Job) InsertPicVoteRow

func (j *Job) InsertPicVoteRow(row *PicVoteRow) error

func (*Job) InsertTag

func (j *Job) InsertTag(pb *schema.Tag) error

func (*Job) InsertTagRow

func (j *Job) InsertTagRow(row *TagRow) error

func (*Job) InsertUser

func (j *Job) InsertUser(pb *schema.User) error

func (*Job) InsertUserEvent

func (j *Job) InsertUserEvent(pb *schema.UserEvent) error

func (*Job) InsertUserEventRow

func (j *Job) InsertUserEventRow(row *UserEventRow) error

func (*Job) InsertUserRow

func (j *Job) InsertUserRow(row *UserRow) error

func (*Job) Rollback

func (j *Job) Rollback() error

func (*Job) ScanCustomData

func (j *Job) ScanCustomData(opts db.Opts, cb func(*schema.CustomData) error) error

func (*Job) ScanPicCommentVotes

func (j *Job) ScanPicCommentVotes(opts db.Opts, cb func(*schema.PicCommentVote) error) error

func (*Job) ScanPicComments

func (j *Job) ScanPicComments(opts db.Opts, cb func(*schema.PicComment) error) error

func (*Job) ScanPicIdents

func (j *Job) ScanPicIdents(opts db.Opts, cb func(*schema.PicIdent) error) error

func (*Job) ScanPicTags

func (j *Job) ScanPicTags(opts db.Opts, cb func(*schema.PicTag) error) error

func (*Job) ScanPicVotes

func (j *Job) ScanPicVotes(opts db.Opts, cb func(*schema.PicVote) error) error

func (*Job) ScanPics

func (j *Job) ScanPics(opts db.Opts, cb func(*schema.Pic) error) error

func (*Job) ScanTags

func (j *Job) ScanTags(opts db.Opts, cb func(*schema.Tag) error) error

func (*Job) ScanUserEvents

func (j *Job) ScanUserEvents(opts db.Opts, cb func(*schema.UserEvent) error) error

func (*Job) ScanUsers

func (j *Job) ScanUsers(opts db.Opts, cb func(*schema.User) error) error

func (*Job) UpdateCustomData

func (j *Job) UpdateCustomData(pb *schema.CustomData) error

func (*Job) UpdateCustomDataRow

func (j *Job) UpdateCustomDataRow(row *CustomDataRow) error

func (*Job) UpdatePic

func (j *Job) UpdatePic(pb *schema.Pic) 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) UpdatePicIdent

func (j *Job) UpdatePicIdent(pb *schema.PicIdent) error

func (*Job) UpdatePicIdentRow

func (j *Job) UpdatePicIdentRow(row *PicIdentRow) error

func (*Job) UpdatePicRow

func (j *Job) UpdatePicRow(row *PicRow) error

func (*Job) UpdatePicTag

func (j *Job) UpdatePicTag(pb *schema.PicTag) error

func (*Job) UpdatePicTagRow

func (j *Job) UpdatePicTagRow(row *PicTagRow) error

func (*Job) UpdatePicVote

func (j *Job) UpdatePicVote(pb *schema.PicVote) error

func (*Job) UpdatePicVoteCommentRow

func (j *Job) UpdatePicVoteCommentRow(row *PicVoteCommentRow) error

func (*Job) UpdatePicVoteRow

func (j *Job) UpdatePicVoteRow(row *PicVoteRow) error

func (*Job) UpdateTag

func (j *Job) UpdateTag(pb *schema.Tag) error

func (*Job) UpdateTagRow

func (j *Job) UpdateTagRow(row *TagRow) error

func (*Job) UpdateUser

func (j *Job) UpdateUser(pb *schema.User) error

func (*Job) UpdateUserEvent

func (j *Job) UpdateUserEvent(pb *schema.UserEvent) error

func (*Job) UpdateUserEventRow

func (j *Job) UpdateUserEventRow(row *UserEventRow) error

func (*Job) UpdateUserRow

func (j *Job) UpdateUserRow(row *UserRow) error

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

type PicCommentVotesPrimary struct {
	PicId *int64

	CommentId *int64

	UserId *int64

	Index *int64
}

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

type PicCommentsPrimary struct {
	PicId *int64

	CommentId *int64
}

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) Descriptor() ([]byte, []int)

func (*PicRow) GetData

func (m *PicRow) GetData() *schema.Pic

func (*PicRow) GetId

func (m *PicRow) GetId() int64

func (*PicRow) GetIndexOrder

func (m *PicRow) GetIndexOrder() int64

func (*PicRow) GetSchedOrder

func (m *PicRow) GetSchedOrder() int32

func (*PicRow) GetScoreOrder

func (m *PicRow) GetScoreOrder() int32

func (*PicRow) ProtoMessage

func (*PicRow) ProtoMessage()

func (*PicRow) Reset

func (m *PicRow) Reset()

func (*PicRow) String

func (m *PicRow) String() string

func (*PicRow) XXX_DiscardUnknown

func (m *PicRow) XXX_DiscardUnknown()

func (*PicRow) XXX_Marshal

func (m *PicRow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PicRow) XXX_Merge

func (m *PicRow) XXX_Merge(src proto.Message)

func (*PicRow) XXX_Size

func (m *PicRow) XXX_Size() int

func (*PicRow) XXX_Unmarshal

func (m *PicRow) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*PicTagRow) GetData

func (m *PicTagRow) GetData() *schema.PicTag

func (*PicTagRow) GetPicId

func (m *PicTagRow) GetPicId() int64

func (*PicTagRow) GetTagId

func (m *PicTagRow) GetTagId() int64

func (*PicTagRow) ProtoMessage

func (*PicTagRow) ProtoMessage()

func (*PicTagRow) Reset

func (m *PicTagRow) Reset()

func (*PicTagRow) String

func (m *PicTagRow) String() string

func (*PicTagRow) XXX_DiscardUnknown

func (m *PicTagRow) XXX_DiscardUnknown()

func (*PicTagRow) XXX_Marshal

func (m *PicTagRow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PicTagRow) XXX_Merge

func (m *PicTagRow) XXX_Merge(src proto.Message)

func (*PicTagRow) XXX_Size

func (m *PicTagRow) XXX_Size() int

func (*PicTagRow) XXX_Unmarshal

func (m *PicTagRow) XXX_Unmarshal(b []byte) error

type PicTagsPrimary

type PicTagsPrimary struct {
	PicId *int64

	TagId *int64
}

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

type PicVotesPrimary struct {
	PicId *int64

	UserId *int64

	Index *int64
}

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

type PicVotesUserId struct {
	UserId *int64

	PicId *int64

	Index *int64
}

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

type PicsIndexOrder struct {
	IndexOrder *int64

	Id *int64
}

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

type PicsSchedOrder struct {
	SchedOrder *int32

	Id *int64
}

func (PicsSchedOrder) Cols

func (idx PicsSchedOrder) Cols() []string

func (PicsSchedOrder) Vals

func (idx PicsSchedOrder) Vals() (vals []interface{})

type PicsScoreOrder

type PicsScoreOrder struct {
	ScoreOrder *int32

	Id *int64
}

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) Descriptor() ([]byte, []int)

func (*TagRow) GetData

func (m *TagRow) GetData() *schema.Tag

func (*TagRow) GetId

func (m *TagRow) GetId() int64

func (*TagRow) GetName

func (m *TagRow) GetName() string

func (*TagRow) ProtoMessage

func (*TagRow) ProtoMessage()

func (*TagRow) Reset

func (m *TagRow) Reset()

func (*TagRow) String

func (m *TagRow) String() string

func (*TagRow) XXX_DiscardUnknown

func (m *TagRow) XXX_DiscardUnknown()

func (*TagRow) XXX_Marshal

func (m *TagRow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TagRow) XXX_Merge

func (m *TagRow) XXX_Merge(src proto.Message)

func (*TagRow) XXX_Size

func (m *TagRow) XXX_Size() int

func (*TagRow) XXX_Unmarshal

func (m *TagRow) XXX_Unmarshal(b []byte) error

type TagsName

type TagsName struct {
	Name *string
}

func (TagsName) Cols

func (idx TagsName) Cols() []string

func (TagsName) Unique

func (_ TagsName) Unique()

func (TagsName) Vals

func (idx TagsName) Vals() (vals []interface{})

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

type UserEventsPrimary struct {
	UserId *int64

	CreatedTs *int64

	Index *int64
}

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) Descriptor() ([]byte, []int)

func (*UserRow) GetData

func (m *UserRow) GetData() *schema.User

func (*UserRow) GetId

func (m *UserRow) GetId() int64

func (*UserRow) GetIdent

func (m *UserRow) GetIdent() string

func (*UserRow) ProtoMessage

func (*UserRow) ProtoMessage()

func (*UserRow) Reset

func (m *UserRow) Reset()

func (*UserRow) String

func (m *UserRow) String() string

func (*UserRow) XXX_DiscardUnknown

func (m *UserRow) XXX_DiscardUnknown()

func (*UserRow) XXX_Marshal

func (m *UserRow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UserRow) XXX_Merge

func (m *UserRow) XXX_Merge(src proto.Message)

func (*UserRow) XXX_Size

func (m *UserRow) XXX_Size() int

func (*UserRow) XXX_Unmarshal

func (m *UserRow) XXX_Unmarshal(b []byte) error

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{})

Jump to

Keyboard shortcuts

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