Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for additional info of columns #137

Open
raderio opened this issue Feb 14, 2017 · 2 comments
Open

Add support for additional info of columns #137

raderio opened this issue Feb 14, 2017 · 2 comments

Comments

@raderio
Copy link

raderio commented Feb 14, 2017

For example if a column has a type different from standard(string, number, ...) we must be able to add that specific info.

For example for this issue solution could be:

CREATE TYPE PRODUCT AS ENUM ('phone', 'laptop', 'mouse');

CREATE TABLE products (
    id BIGSERIAL NOT NULL PRIMARY KEY,
    title VARCHAR(20) NOT NULL,
    type PRODUCT NOT NULL
);
<dataset>
    <products id="1" title="Pixel">
        <column name="type" type="PRODUCT" value="laptop" />
    </products>
</dataset>
@raderio
Copy link
Author

raderio commented Sep 20, 2017

Other syntax could be

<dataset>
    <products id="1" title="Pixel" type:Product="laptop" />
</dataset>

@raderio
Copy link
Author

raderio commented Sep 26, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant