Documentation
¶
Index ¶
- func Close() error
- func DeleteOldFromNow() error
- func Init(ctx ...context.Context)
- func Select(fileName, args string) (*store.StoreUnit, error)
- func Upsert(fileName, args string, unit *store.StoreUnit) error
- type Pull
- func (p *Pull) Add(fileName string) (*SQL, error)
- func (p *Pull) Close() error
- func (p *Pull) DeleteOld() (int64, error)
- func (p *Pull) DeleteOldFromNow() error
- func (p *Pull) Get(fileName string) (*SQL, error)
- func (p *Pull) Select(fileName, args string) (*store.StoreUnit, error)
- func (p *Pull) Upsert(fileName, args string, unit *store.StoreUnit) error
- type SQL
- func (s *SQL) Close() error
- func (s *SQL) CreateTable() error
- func (s *SQL) DeleteOld() (int64, error)
- func (s *SQL) DeleteOldByTime(timeForCut int) (int64, error)
- func (s *SQL) Open() error
- func (s *SQL) Select(args string) (*store.StoreUnit, error)
- func (s *SQL) UpdateTimeRead(updateTimeRead bool)
- func (s *SQL) Upsert(args string, unit *store.StoreUnit) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteOldFromNow ¶ added in v0.1.1
func DeleteOldFromNow() error
Types ¶
type Pull ¶
type Pull struct {
// contains filtered or unexported fields
}
func (*Pull) DeleteOldFromNow ¶ added in v0.1.1
type SQL ¶
type SQL struct {
// contains filtered or unexported fields
}
func (*SQL) CreateTable ¶
func (*SQL) DeleteOldByTime ¶ added in v0.1.2
func (*SQL) UpdateTimeRead ¶ added in v0.1.2
Click to show internal directories.
Click to hide internal directories.