diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..d13affe --- /dev/null +++ b/.gitattributes @@ -0,0 +1,2 @@ +# Ensure all Java files use LF. +*.java eol=lf diff --git a/ballerina/csv_api.bal b/ballerina/csv_api.bal index db3fd88..7355b09 100644 --- a/ballerina/csv_api.bal +++ b/ballerina/csv_api.bal @@ -72,9 +72,9 @@ public isolated function parseStreamToList(stream s, ParseOption options = {}, typedesc t = <>) returns t|Error = @java:Method {'class: "io.ballerina.stdlib.data.csvdata.csv.Native"} external; -# Convert value of type `record{}[]` to subtype of `record{}[]`. +# Convert value of type record{}[] to subtype of record{}[]. # -# + v - Source Ballerina record array value +# + s - Source Ballerina record array value # + options - Options to be used for filtering in the projection # + t - Target type # + return - On success, returns value belonging to the given target type, else returns an `csv:Error` value. @@ -82,9 +82,10 @@ public isolated function parseRecordAsRecordType(record{}[] s, RecordAsRecordOption options = {}, typedesc t = <>) returns t|Error = @java:Method {'class: "io.ballerina.stdlib.data.csvdata.csv.Native"} external; -# Convert value of type `record{}[]` to subtype of `anydata[][]`. +# Convert value of type record{}[] to subtype of anydata[][]. # -# + v - Source Ballerina record array value +# + s - Source Ballerina record array value +# + headerNames - The order of the header names in the source # + options - Options to be used for filtering in the projection # + t - Target type # + return - On success, returns value belonging to the given target type, else returns an `csv:Error` value. @@ -92,9 +93,10 @@ public isolated function parseRecordAsListType(record{}[] s, string[] headerName Options options = {}, typedesc t = <>) returns t|Error = @java:Method {'class: "io.ballerina.stdlib.data.csvdata.csv.Native"} external; -# Convert value of type `string[][]` to subtype of `record{}[]`. +# Convert value of type string[][] to subtype of record{}[]. # -# + v - Source Ballerina string array of array value +# + s - Source Ballerina string array of array value +# + customHeaders - The order of the header names in the source # + options - Options to be used for filtering in the projection # + t - Target type # + return - On success, returns value belonging to the given target type, else returns an `csv:Error` value. @@ -102,9 +104,9 @@ public isolated function parseListAsRecordType(string[][] s, string[]? customHea ListAsRecordOption options = {}, typedesc t = <>) returns t|Error = @java:Method {'class: "io.ballerina.stdlib.data.csvdata.csv.Native"} external; -# Convert value of type `string[][]` to subtype of `anydata[][]`. +# Convert value of type string[][] to subtype of anydata[][]. # -# + v - Source Ballerina string array of array value +# + s - Source Ballerina string array of array value # + options - Options to be used for filtering in the projection # + t - Target type # + return - On success, returns value belonging to the given target type, else returns an `csv:Error` value. diff --git a/build-config/resources/Ballerina.toml b/build-config/resources/Ballerina.toml index ea02379..3db6b47 100644 --- a/build-config/resources/Ballerina.toml +++ b/build-config/resources/Ballerina.toml @@ -17,9 +17,3 @@ groupId = "io.ballerina.stdlib" artifactId = "data.csv-native" version = "@toml.version@" path = "../native/build/libs/data.csv-native-@project.version@.jar" - -[[platform.java17.dependency]] -groupId = "io.ballerina.stdlib" -artifactId = "constraint-native" -version = "@constraint.version@" -path = "./lib/constraint-native-@stdlib.constraintnative.version@.jar" diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 0000000..f60b970 --- /dev/null +++ b/codecov.yml @@ -0,0 +1,8 @@ +coverage: + precision: 2 + round: down + range: "60...80" + status: + project: + default: + target: 80