StandardCsvGenerator

com.phasmidsoftware.tableparser.core.render.StandardCsvGenerator
class StandardCsvGenerator[T](using ca: CsvAttributes) extends CsvGenerator[T]

The StandardCsvGenerator class extends the CsvGenerator trait to provide functionality for generating standardized CSV output. It utilizes implicit CsvAttributes for configuring the delimiter and quote character used in the CSV representation.

Type parameters

T

the type of the objects for which this generator creates column names.

Value parameters

ca

an implicit instance of CsvAttributes which defines the delimiter and quote character.

Attributes

Constructor

Creates a new StandardCsvGenerator instance with implicit CsvAttributes providing the configuration for CSV generation.

Graph
Supertypes
trait CsvGenerator[T]
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Concrete methods

def merge(po: Option[String], no: Option[String]): Option[String]

Merges two optional strings into a single optional string. If both po and no are defined, the resulting string is their concatenation in the format po.no. If only one of the options is defined, it returns that single option. If neither are defined, it returns None.

Merges two optional strings into a single optional string. If both po and no are defined, the resulting string is their concatenation in the format po.no. If only one of the options is defined, it returns that single option. If neither are defined, it returns None.

Value parameters

no

an optional suffix string; if defined, it will form the second part of the resulting string.

po

an optional prefix string; if defined, it will form the first part of the resulting string.

Attributes

Returns

an optional string in the format po.no if both options are defined, or the defined option if only one is present, or None if both are None.

def toColumnName(po: Option[String], name: String): String

Converts a column name into a qualified column name by optionally prefixing it with a provided qualifier.

Converts a column name into a qualified column name by optionally prefixing it with a provided qualifier.

Value parameters

name

the column name to be qualified.

po

an optional qualifier (e.g., a table alias) to prepend to the column name. If None, no qualifier is prepended.

Attributes

Returns

a fully-qualified column name in the format "qualifier.name" if po is defined, or just name if po is None.

Concrete fields