X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fp5-File-KDBX;a=blobdiff_plain;f=lib%2FFile%2FKDBX%2FLoader.pm;h=ff44832c6d92b985394083500e68a569c65d246d;hp=9f513218949255a234b2438d4c4a6e5276708246;hb=05e0bcef1c2165c556b910314312866dc4a667b7;hpb=af22194015e0d2182beecda0d9f40e59784ce398 diff --git a/lib/File/KDBX/Loader.pm b/lib/File/KDBX/Loader.pm index 9f51321..ff44832 100644 --- a/lib/File/KDBX/Loader.pm +++ b/lib/File/KDBX/Loader.pm @@ -212,11 +212,32 @@ sub kdbx { =attr format -TODO +Get the file format used for reading the database. Normally the format is auto-detected from the data stream. +This auto-detection works well, so there's not really a good reason to explicitly specify the format. +Possible formats: + +=for :list +* C +* C +* C +* C +* C =cut sub format { $_[0]->{format} } + +=attr inner_format + +Get the format of the data inside the KDBX envelope. This only applies to C and C formats. Possible +formats: + +=for :list +* C - Read the database groups and entries as XML (default) +* C - Read parsing and store the result in L + +=cut + sub inner_format { $_[0]->{inner_format} // 'XML' } =attr min_version @@ -346,3 +367,9 @@ sub _read_inner_body { } 1; +__END__ + +=head1 DESCRIPTION + + +=cut