Skip to main content
Home

Built and signed on GitHub Actions

Works with
This package works with Node.js, Deno
This package works with Node.js
This package works with Deno
JSR Score100%
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(
    followeeId: URL,
    follow: Follow
    ): Promise<void>
    No documentation available
  • addFollower(
    followRequestId: URL,
    follower: Actor
    ): Promise<void>
    No documentation available
  • addMessage(
    id: Uuid,
    activity: Create | Announce
    ): Promise<void>
    No documentation available
  • addSentFollow(
    id: Uuid,
    follow: Follow
    ): Promise<void>
    No 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: DatabaseSync
    No 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
  • No documentation available
  • removeFollowee(followeeId: URL): Promise<Follow | undefined>
    No documentation available
  • removeFollower(
    followRequestId: URL,
    actorId: URL
    ): Promise<Actor | undefined>
    No 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(
    id: Uuid,
    updater: (existing: Create | Announce) =>
    Create
    | Announce
    | undefined
    | Promise<Create | Announce | undefined>
    ): Promise<boolean>
    No documentation available
  • vote(
    messageId: Uuid,
    voterId: URL,
    option: string
    ): Promise<void>
    No documentation available

Interfaces

I

Options for creating a SQLite repository.

  • path: string

    The path to the SQLite database file. If not provided, an in-memory database will be used.

  • wal: boolean

    Whether to enable Write-Ahead Logging (WAL) mode.

Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@fedify/botkit-sqlite

Import symbol

import * as mod from "@fedify/botkit-sqlite";
or

Import directly with a jsr specifier

import * as mod from "jsr:@fedify/botkit-sqlite";