exportJPKtoSQLite: exportJPKtoSQLite main function.

Description Usage Arguments Value

View source: R/exportJPKtoSQLite.r

Description

exportJPKtoSQLite is doing parsing JPK elemens for example from "Faktura" table of JPK_FA file single record is between this characters "<Faktura typ=\"G\">","</Faktura>", function generate SQLite file with tables with records of JPK file.

Usage

1
2
3
exportJPKtoSQLite(file_xml = "", file_SQL = "Plik_JPK.sqlite",
  export_dir = "", bufor_size = 10000, pathToBinary = Sys.getenv(x =
  "JPKr_GO_BINARY"))

Arguments

file_xml

path to xml file

file_SQL

name of sqlfile you want to create 'remember to add .sqlite at the end'

export_dir

dir where you want o save SQLite file

bufor_size

size of single instert of records you want to write to sqlite base. Default is 1000

UseGolang

T/F param to use golang for faster parsing xml files. 400mb file on my PC is 3h with pure R, and 1,5miniwht GO

Value

SQLite db filled with parsed JPK file


kiwimic/JPKr documentation built on Aug. 26, 2019, 6:45 p.m.