@fedify/botkit-sqlite@0.3.1Built and signed on GitHub ActionsBuilt and signed on GitHub Actions
Built and signed on GitHub Actions
latest
fedify-dev/botkitWorks with
•JSR Score100%•This package works with Node.js, Deno

Downloads1/wk
•Published2 months ago (0.3.1)
SQLite repository for BotKit
Classes
c
SqliteRepository(options?: SqliteRepositoryOptions)
A repository for storing bot data using SQLite.
- addFollowee(): Promise<void>followeeId: URL,follow: FollowNo documentation available
- addFollower(): Promise<void>followRequestId: URL,follower: ActorNo documentation available
- addMessage(): Promise<void>id: Uuid,activity: Create | AnnounceNo documentation available
- addSentFollow(): Promise<void>id: Uuid,follow: FollowNo documentation available
- close(): void
Closes the database connection.
- countFollowers(): Promise<number>No documentation available
- countMessages(): Promise<number>No documentation available
- countVoters(messageId: Uuid): Promise<number>No documentation available
- countVotes(messageId: Uuid): Promise<Readonly<Record<string, number>>>No documentation available
- db: DatabaseSyncNo documentation available
- getFollowee(followeeId: URL): Promise<Follow | undefined>No documentation available
- getFollowers(options?: RepositoryGetFollowersOptions): AsyncIterable<Actor>No documentation available
- getKeyPairs(): Promise<CryptoKeyPair[] | undefined>No documentation available
- getMessage(id: Uuid): Promise<Create | Announce | undefined>No documentation available
- getMessages(options?: RepositoryGetMessagesOptions): AsyncIterable<Create | Announce>No documentation available
- getSentFollow(id: Uuid): Promise<Follow | undefined>No documentation available
- hasFollower(followerId: URL): Promise<boolean>No documentation available
- initializeTables(): voidNo documentation available
- removeFollowee(followeeId: URL): Promise<Follow | undefined>No documentation available
- removeFollower(): Promise<Actor | undefined>followRequestId: URL,actorId: URLNo documentation available
- removeMessage(id: Uuid): Promise<Create | Announce | undefined>No documentation available
- removeSentFollow(id: Uuid): Promise<Follow | undefined>No documentation available
- setKeyPairs(keyPairs: CryptoKeyPair[]): Promise<void>No documentation available
- updateMessage(): Promise<boolean>id: Uuid,updater: (existing: Create | Announce) =>Create
| Announce
| undefined
| Promise<Create | Announce | undefined>No documentation available - vote(): Promise<void>messageId: Uuid,voterId: URL,option: stringNo documentation available
Interfaces
I
Options for creating a SQLite repository.
Add Package
deno add jsr:@fedify/botkit-sqlite
Import symbol
import * as mod from "@fedify/botkit-sqlite";
Import directly with a jsr specifier
import * as mod from "jsr:@fedify/botkit-sqlite";