Skip to content

Feature Request: Config for uppercase / lowercase data types #653

Closed
@karlhorky

Description

@karlhorky

Describe the Feature

Currently, using keywordCase: 'upper' results in

CREATE TABLE
  users (
    id INTEGER PRIMARY KEY GENERATED ALWAYS AS IDENTITY,
    username VARCHAR(30) NOT NULL UNIQUE,
    password_hash VARCHAR(60) NOT NULL
  );

It would be nice to have an option (eg. dataTypeCase, could default to keywordCase value for backwards compatibility) to format the data types (integer, varchar, any other data types) as lowercase, since this is the style in the PostgreSQL docs:

CREATE TABLE
  users (
    id integer PRIMARY KEY GENERATED ALWAYS AS IDENTITY,
    username varchar(30) NOT NULL UNIQUE,
    password_hash varchar(60) NOT NULL
  );

Why do you want this feature?

This is the style in the PostgreSQL docs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions