Documentation ¶
Index ¶
- Variables
- type Base
- func (b *Base) CreateSqlModel(d *sqlutil.Dialect) error
- func (b *Base) CreateTables(d *Dialect) error
- func (b *Base) Expire(expire time.Time) error
- func (b *Base) InsertGoupMapping(group []byte, num int64, msgid []byte, expire time.Time) error
- func (b *Base) InsertIDMapping(msgid, bucket []byte, expire time.Time) error
- func (b *Base) QueryGroupList(group []byte, first, last int64, ...) error
- func (b *Base) QueryGroupMapping(group []byte, num int64) (msgid, bucket bufferex.Binary, err error)
- func (b *Base) QueryGroupShift(group []byte, num int64, backward bool) (nxt int64, msgid bufferex.Binary, err error)
- func (b *Base) QueryIDMapping(msgid []byte) (bucket bufferex.Binary, err error)
- type Dialect
Constants ¶
This section is empty.
Variables ¶
View Source
var MsSqlDialect = &Dialect{
Binary: "varbinary",
Int64: "bigint",
Date: "date",
}
Microsoft SQL Server (untested)
View Source
var PgDialect = &Dialect{
Binary: "bytea",
Int64: "bigint",
Date: "date",
}
PostgreSQL
Functions ¶
This section is empty.
Types ¶
type Base ¶
func (*Base) CreateTables ¶
func (*Base) InsertGoupMapping ¶
func (*Base) InsertIDMapping ¶
func (*Base) QueryGroupList ¶
func (*Base) QueryGroupMapping ¶
func (*Base) QueryGroupShift ¶
Click to show internal directories.
Click to hide internal directories.