fraci
    Preparing search index...

    Type Alias FraciForDrizzle<Config>

    FraciForDrizzle: Config["fraci"] & {
        indicesForAfter: {
            (
                group: DrizzleFraciGroup<Config>,
                cursor: DrizzleFraciCursor<Config>,
            ): Promise<
                | undefined
                | [DrizzleFractionalIndex<Config>, null | DrizzleFractionalIndex<Config>],
            >;
            (
                group: DrizzleFraciGroup<Config>,
                cursor: null,
            ): Promise<[null, null | DrizzleFractionalIndex<Config>]>;
        };
        indicesForBefore: {
            (
                group: DrizzleFraciGroup<Config>,
                cursor: DrizzleFraciCursor<Config>,
            ): Promise<
                | undefined
                | [null | DrizzleFractionalIndex<Config>, DrizzleFractionalIndex<Config>],
            >;
            (
                group: DrizzleFraciGroup<Config>,
                cursor: null,
            ): Promise<[null | DrizzleFractionalIndex<Config>, null]>;
        };
        indicesForFirst: (
            group: DrizzleFraciGroup<Config>,
        ) => Promise<[null, DrizzleFractionalIndex<Config> | null]>;
        indicesForLast: (
            group: DrizzleFraciGroup<Config>,
        ) => Promise<[DrizzleFractionalIndex<Config> | null, null]>;
    }

    Type representing the enhanced fractional indexing utility for Drizzle ORM with asynchronous database engine. This type extends the base fractional indexing utility with additional methods for retrieving indices based on asynchronous database queries.

    Type Parameters

    Type declaration

    • ReadonlyindicesForAfter: {
          (
              group: DrizzleFraciGroup<Config>,
              cursor: DrizzleFraciCursor<Config>,
          ): Promise<
              | undefined
              | [DrizzleFractionalIndex<Config>, null | DrizzleFractionalIndex<Config>],
          >;
          (
              group: DrizzleFraciGroup<Config>,
              cursor: null,
          ): Promise<[null, null | DrizzleFractionalIndex<Config>]>;
      }

      Returns the indices to calculate the new index of the item to be inserted after the cursor.

      A record of the columns that uniquely identifies the group.

      A record of the cursor row columns that uniquely identifies the item within a group. If null, this function returns the indices to calculate the new index of the first item in the group.

      The indices to calculate the new index of the item to be inserted after the cursor.

    • ReadonlyindicesForBefore: {
          (
              group: DrizzleFraciGroup<Config>,
              cursor: DrizzleFraciCursor<Config>,
          ): Promise<
              | undefined
              | [null | DrizzleFractionalIndex<Config>, DrizzleFractionalIndex<Config>],
          >;
          (
              group: DrizzleFraciGroup<Config>,
              cursor: null,
          ): Promise<[null | DrizzleFractionalIndex<Config>, null]>;
      }

      Returns the indices to calculate the new index of the item to be inserted before the cursor.

      A record of the columns that uniquely identifies the group.

      A record of the cursor row columns that uniquely identifies the item within a group. If null, this function returns the indices to calculate the new index of the last item in the group.

      The indices to calculate the new index of the item to be inserted before the cursor.

    • ReadonlyindicesForFirst: (
          group: DrizzleFraciGroup<Config>,
      ) => Promise<[null, DrizzleFractionalIndex<Config> | null]>

      Returns the indices to calculate the new index of the first item in the group. Identical to indicesForAfter(null, group).

    • ReadonlyindicesForLast: (
          group: DrizzleFraciGroup<Config>,
      ) => Promise<[DrizzleFractionalIndex<Config> | null, null]>

      Returns the indices to calculate the new index of the last item in the group. Identical to indicesForBefore(null, group).