Proposed feature request:
I don't know how complex it would be, but maybe we can just map SQL INSERT statements values into columns accepted as fread's input?
INSERT INTO tbl(col1, col2, col3, col4) VALUES (1, 'asd', 923123123, 'zx');
INSERT INTO tbl(col1, col3, col4) VALUES (2, 923123123, 'zxz');
INSERT INTO tbl(col1, col2, col3) VALUES (3, 'asd3', 923123123);
or at least full column set
INSERT INTO tbl VALUES (1, 'asd', 923123123, 'zx');
INSERT INTO tbl VALUES (1,NULL,923123123,'zxz');
INSERT INTO tbl VALUES (3, 'asd3', 923123123, NULL);
and the results would be:
data.table(col1 = c(1,2,3), col2 = c('asd',NA,'asd3'), col3 = c(923123123,923123123,923123123), col4 = c('zx','zxz','NA'))
> col1 col2 col3 col4
> 1: 1 asd 923123123 zx
> 2: 2 NA 923123123 zxz
> 3: 3 asd3 923123123 NA
there are multiple (or even tons) of systems which export/import data using such scripts.
I think it could be handy but it is not a high priority.
Proposed feature request:
I don't know how complex it would be, but maybe we can just map SQL INSERT statements values into columns accepted as fread's input?
or at least full column set
and the results would be:
there are multiple (or even tons) of systems which export/import data using such scripts.
I think it could be handy but it is not a high priority.