Skip to content

Commit 7d4eff0

Browse files
committed
add json lines file extensions support
- support .jsonl, .ndjson, and .jsonlines extensions for FileTypeJsonLines - update Exts method to return correct extensions for json lines format
1 parent e8a0eb6 commit 7d4eff0

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

core/dbio/dbio_types.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -741,6 +741,8 @@ func (ft FileType) Exts() []string {
741741
switch ft {
742742
case FileTypeExcel:
743743
return []string{".xlsx", ".xlsm", ".xls"}
744+
case FileTypeJsonLines:
745+
return []string{".jsonl", ".ndjson", ".jsonlines"}
744746
default:
745747
return []string{ft.Ext()}
746748
}

0 commit comments

Comments
 (0)