@eagleoutice/flowr - v2.13.14
    Preparing search index...

    The read interface every package-signature source implements, so a single SigDatabase and a sharded SigDatabaseSet are interchangeable. Queries are synchronous; any decompression/caching happens once during open.

    Implements

    Index
    content: SigDbContent | undefined
    index: SigDbIndex
    strings: string[]
    • Use an already-built SigDb directly, without writing or reading a file: its blobs simply start out in the cache. It holds exactly what a bundle carries, so every query answers as it would from disk; the SigDbBuilder plus this is all a test needs.

      Parameters

      Returns SigDatabase

    • Open a plain, seekable .sigs.ndjson synchronously. Pass index to skip reading the .idx, and strings to use an already-loaded shared dictionary instead of the file's own d section (for a blob-only shard). One ranged read loads the dictionary, no readline overhead.

      Parameters

      Returns SigDatabase

    • load a single package's blob by seeking to its line (undefined if absent); cached by blob index

      Parameters

      • pkg: string

      Returns PkgBlob | undefined

    • The package that OWNS the class className: an S3 class (a same-named constructor plus a registered method, see LibraryExports.s3Classes) or an S4 class (exported via exportClasses, see LibraryExports.s4Classes); S3 ownership wins a tie. undefined if none does. Without version, backed by a reverse index over every package's latest version, built once and cached.

      Parameters

      • className: string
      • Optionalversion: string

      Returns string | undefined

    • recompute this bundle's self-contained content hash from its re-read data (matches writeSignatureDb)

      Parameters

      Returns string

    • the release date of a package version (defaulting to the newest release), or undefined if unknown

      Parameters

      • pkg: string
      • Optionalversion: string

      Returns Date | undefined

    • the transitive callees of a function within one package version, expanding the stored local call graphs

      Parameters

      • pkg: string
      • name: string
      • Optionalversion: string

      Returns string[] | undefined