inlineColumnNames

oxygen.sql.schema.inlineColumnNames
final case class inlineColumnNames() extends StaticAnnotation

Best explained with an example: final case class Inner(field_1: String, field_2: String) derives RowSchema.ProductSchema final case class Outer(inner: Inner) derives RowSchema.ProductSchema

By default, this schema will have 2 fields: inner_field_1 and inner_field_2. Using inlineColumnNames on inner, like: final case class Outer(@inlineColumnName inner: Inner) derives RowSchema.ProductSchema will result in fields field_1 and field_2.

NOTE: If this is used on field that is not a product schema, the annotation will be ignored.

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait StaticAnnotation
class Annotation
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product