inlineColumnNames

oxygen.sql.schema.inlineColumnNames
See theinlineColumnNames companion object
final 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

Companion
object
Graph
Supertypes
trait StaticAnnotation
class Annotation
class Object
trait Matchable
class Any
In this article