iya-sts
    Preparing search index...
    records: (
        file: any,
    ) => AsyncGenerator<
        {
            entry: any;
            extra: boolean;
            line: number;
            ordinal: number;
            url: boolean;
        },
        void,
        unknown,
    > = records

    Type Declaration

      • (
            file: any,
        ): AsyncGenerator<
            {
                entry: any;
                extra: boolean;
                line: number;
                ordinal: number;
                url: boolean;
            },
            void,
            unknown,
        >
      • Reads an LDIF file record by record, without holding it.

        Each record is { ordinal, line, entry, url, extra }: entry is fromLdif()'s { dn, attributes } (attribute names lower-cased, values arrays of strings), url is true where a line was a :< URL value, and extra is true where the block held more than one dn: (a missing blank line), which the import refuses rather than guessing.

        Parameters

        • file: any

          the path of the LDIF file

        Returns AsyncGenerator<
            {
                entry: any;
                extra: boolean;
                line: number;
                ordinal: number;
                url: boolean;
            },
            void,
            unknown,
        >

        an async iterator of records