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

ENUM and SET have no way to define options or default value #488

Open
stantechie opened this issue Dec 18, 2024 · 1 comment
Open

ENUM and SET have no way to define options or default value #488

stantechie opened this issue Dec 18, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@stantechie
Copy link

Here's an example of DrawDB and how it's handled:

drawdb_example

Can this be implemented? I like ChartDB more but this is a missing feature.

Here's an example of the SQL output:

CREATE OR REPLACE TABLE `users` (
	`id` BIGINT NOT NULL AUTO_INCREMENT UNIQUE,
	`status` ENUM("Active", "Pending", "Suspended") DEFAULT 'Pending',
	`name` TEXT(65535),
	`email` TEXT(65535),
	`phone` TEXT(65535),
	`password` TEXT(65535),
	`role` INT,
	PRIMARY KEY(`id`)
);
@guyb1 guyb1 added the enhancement New feature or request label Dec 21, 2024
@guyb1
Copy link
Contributor

guyb1 commented Dec 21, 2024

Hi @stantechie, thank you for taking the time to share this feature request!

Adding support for defining options and default values for ENUM and SET is a great idea, and we’ll prioritize it in our roadmap. We’ll keep you updated as we work on implementing this.

Thanks again for helping improve ChartDB!

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

No branches or pull requests

2 participants