Documentation
¶
Overview ¶
Package twdb provides tools to store a Twitter/X db-index of tweets.
Index ¶
- func SchemaVersion() int
- type DB
- func (db *DB) AddAccount(ctx context.Context, acc twarc.Account) error
- func (db *DB) AddBskyPost(ctx context.Context, acc twarc.Account, tid twarc.ID, bsid string) error
- func (db *DB) AddTweet(ctx context.Context, acc twarc.Account, tw twarc.Tweet) error
- func (db *DB) AddUser(ctx context.Context, usr User) error
- func (db *DB) BskyPost(ctx context.Context, acc twarc.Account, tid twarc.ID) (bid string, err error)
- func (db *DB) BskyUser(ctx context.Context, id twarc.ID) (did string, err error)
- func (db *DB) Close() (err error)
- func (db *DB) HasAccount(ctx context.Context, acc twarc.Account) bool
- func (db *DB) HasBskyPost(ctx context.Context, acc twarc.Account, tid twarc.ID) bool
- func (db *DB) HasTweet(ctx context.Context, acc twarc.Account, tw twarc.Tweet) bool
- func (db *DB) HasUser(ctx context.Context, id twarc.ID) bool
- func (db *DB) ImportArchive(ctx context.Context, a twarc.Archive) error
- func (db *DB) Threads(ctx context.Context, acc twarc.Account) iter.Seq2[twarc.Thread, error]
- func (db *DB) Tweet(ctx context.Context, acc twarc.Account, tid twarc.ID) (tw twarc.Tweet, err error)
- func (db *DB) Tweets(ctx context.Context, acc twarc.Account) iter.Seq2[twarc.Tweet, error]
- func (db *DB) Users(ctx context.Context) iter.Seq2[User, error]
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SchemaVersion ¶
func SchemaVersion() int
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
func (*DB) AddBskyPost ¶
func (*DB) HasBskyPost ¶
Click to show internal directories.
Click to hide internal directories.