Skip to contents

For flat tables, transform attribute and measure names according to the snake case style. For star databases, transform fact, dimension, measures, and attribute names according to the snake case style.

Usage

# S3 method for flat_table
snake_case(db)

snake_case(db)

# S3 method for star_database
snake_case(db)

Arguments

db

A flat_table or star_database object.

Value

A flat_table or star_database object.

Details

This style is suitable if we are going to work with databases.

Examples


db <- star_database(mrs_cause_schema, ft_num) |>
  snake_case()

ft <- flat_table('iris', iris) |>
  snake_case()