Skip to content

composite types don't work #309

Closed

Description

@skariel

the following code

CREATE TYPE type_foo AS (
    x integer,
    y integer
);

CREATE TABLE tdd.solution (
    solution_id uuid DEFAULT uuid_generate_v4() PRIMARY KEY,
    bar foo
);

results in the following error:

 unknown PostgreSQL type: type_foo

Activity

  1. clansofts commented on Jan 30, 2020

    @clansofts

    @skariel add overides as below

    .....
    "overrides": [
    {
    "go_type": "path/to/your/generated/models/db.TypeFoo",
    "db_type": "public.type_foo",
    "null": true
    }
    ]

    Then re-generate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions