Skip to content

Support column type macaddr8 for Postgres #11344

@chkjohn

Description

@chkjohn

Feature Description

Currently, only the macaddr type is supported in @Column(), but not macaddr8.

https://www.postgresql.org/docs/14/datatype-net-types.html#DATATYPE-MACADDR8

The Solution

Can include the column type macaddr8 in @Column()

@Column({ type: 'macaddr8' })
macAddress: string

Considered Alternatives

No alternatives. What I can do for now is using the varchar instead, and then validate the string value before saving it to db.

Additional Context

No response

Relevant Database Driver(s)

  • aurora-mysql
  • aurora-postgres
  • better-sqlite3
  • cockroachdb
  • cordova
  • expo
  • mongodb
  • mysql
  • nativescript
  • oracle
  • postgres
  • react-native
  • sap
  • spanner
  • sqlite
  • sqlite-abstract
  • sqljs
  • sqlserver

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions