Skip to content

Use sql comments as output by diesel print-schema, if present #144

@SamuelMarks

Description

@SamuelMarks

How should this be supported? - I'm thinking:

CREATE TABLE "profiles" (
    alias             VARCHAR(50) PRIMARY KEY    -- user-modifiable alias
);

Or maybe:

COMMENT ON COLUMN profiles.alias IS 'user-modifiable alias';

Or something else? - What do you think?

Here's the current code FWIW: https://github.com/Wulf/dsync/blob/2797966/src/code.rs#L360

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions