Skip to content

Add schema comments to models.go #187

Closed
@maxhawkins

Description

@maxhawkins

If I attach a comment to a table or column in the schema it should appear as a comment in the generated Go code.

CREATE TABLE foo ( bar INT );
COMMENT ON TABLE foo IS 'Foo is a table';
COMMENT ON COLUMN foo.bar IS 'Bar is a column';
// Foo is a table
type Foo struct {
  // Bar is a column
  Bar int
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions