class ParserOptions extends Object
Parser Options
- Annotations
- @RawJSType() @ScalaJSDefined()
- Alphabetic
- By Inheritance
- ParserOptions
- Object
- Any
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
ParserOptions(delimiter: UndefOr[String] = js.undefined, rowDelimiter: UndefOr[String] = js.undefined, quote: UndefOr[String] = js.undefined, escape: UndefOr[String] = js.undefined, columns: UndefOr[|[|[Array[String], Boolean], Function]] = js.undefined, comment: UndefOr[String] = js.undefined, objname: UndefOr[String] = js.undefined, relax: UndefOr[Boolean] = js.undefined, relax_column_count: UndefOr[Boolean] = js.undefined, skip_empty_lines: UndefOr[Boolean] = js.undefined, max_limit_on_data_read: UndefOr[Int] = js.undefined, trim: UndefOr[Boolean] = js.undefined, ltrim: UndefOr[Boolean] = js.undefined, rtrim: UndefOr[Boolean] = js.undefined, auto_parse: UndefOr[Boolean] = js.undefined, auto_parse_date: UndefOr[Boolean] = js.undefined)
- delimiter
Set the field delimiter. One character only. Defaults to "," (comma).
- rowDelimiter
String used to delimit record rows or a special constant; special constants are 'auto', 'unix', 'mac', 'windows', 'unicode'; defaults to 'auto' (discovered in source or 'unix' if no source is specified).
- quote
Optional: character surrounding a field. One character only. Defaults to double quote.
- escape
Set the escape character. One character only. Defaults to double quote.
- columns
(array|boolean|function) List of fields as an array, a user defined callback accepting the first line and returning the column names, or true if autodiscovered in the first CSV line. Defaults to null. Affects the result data set in the sense that records will be objects instead of arrays.
- comment
Treat all the characters after this one as a comment. Defaults to "" (disabled).
- objname
Name of header-record title to name objects by.
- relax
Preserve quotes inside unquoted field.
- relax_column_count
Discard inconsistent columns count. Default to false.
- skip_empty_lines
Don't generate empty values for empty lines.
- max_limit_on_data_read
Maximum numer of characters to be contained in the field and line buffers before an exception is raised. Used to guard against a wrong delimiter or rowDelimiter. Default to 128,000 characters.
- trim
If true, ignore whitespace immediately around the delimiter. Defaults to false. Does not remove whitespace in a quoted field.
- ltrim
If true, ignore whitespace immediately following the delimiter (i.e. left-trim all fields). Defaults to false. Does not remove whitespace in a quoted field.
- rtrim
If true, ignore whitespace immediately preceding the delimiter (i.e. right-trim all fields). Defaults to false. Does not remove whitespace in a quoted field.
- auto_parse
If true, the parser will attempt to convert input string to native types.
- auto_parse_date
If true, the parser will attempt to convert input string to dates. It requires the "auto_parse" option. Be careful, it relies on Date.parse.
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- var auto_parse: UndefOr[Boolean]
- var auto_parse_date: UndefOr[Boolean]
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
- var columns: UndefOr[|[|[Array[String], Boolean], Function]]
- var comment: UndefOr[String]
- var delimiter: UndefOr[String]
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- var escape: UndefOr[String]
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hasOwnProperty(v: String): Boolean
- Definition Classes
- Object
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isPrototypeOf(v: Object): Boolean
- Definition Classes
- Object
- var ltrim: UndefOr[Boolean]
- var max_limit_on_data_read: UndefOr[Int]
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- var objname: UndefOr[String]
-
def
propertyIsEnumerable(v: String): Boolean
- Definition Classes
- Object
- var quote: UndefOr[String]
- var relax: UndefOr[Boolean]
- var relax_column_count: UndefOr[Boolean]
- var rowDelimiter: UndefOr[String]
- var rtrim: UndefOr[Boolean]
- var skip_empty_lines: UndefOr[Boolean]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toLocaleString(): String
- Definition Classes
- Object
-
def
toString(): String
- Definition Classes
- AnyRef → Any
- var trim: UndefOr[Boolean]
-
def
valueOf(): Any
- Definition Classes
- Object
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )