Create> customized fields

laurent_h's profile image laurent_h posted 10 years ago in Feature discussion Permalink
Hi,

It will be great to add customized fields,
example :

[Name] - [Type] - [Default] - [Index]
Deleted - ENUM('YES', 'NO') - 'NO' - INDEXED


Thanks ;-)
jfalch's profile image jfalch posted 10 years ago Permalink
your example does not explain what you want. what exactly is a "customized field" and how does it differ from a normal field definition ?
ansgar's profile image ansgar posted 10 years ago Permalink
I guess you did not yet see HeidiSQL's table editor for adding new columns? Just doubleclick a table and see the green "Add" button.
kalvaro's profile image kalvaro posted 10 years ago Permalink
I suspect laurent_h might be referring to some kind of type templates or domain editor. For instance, every time you code a file upload feature you'll possibly need a column for the MIME type and having the column definition stored would save you some time (looking up the maximum size, providing a default value...) and would help you to keep coherence (every time you use such column it would have the same exact definition).

While I think it could be a nice feature, I tend to think of HeidiSQL as an administration tool (rather than a design tool) so I'm not sure it'd really fit.

BTW, I can think of a workaround: maintain an ad-hoc database with templates. Then, when you need a table or column you can leverage HeidiSQL "Create new table copy" and "Copy selected columns / Paste columns" features.

(If that's not what the OP meant, please clarify!)
jfalch's profile image jfalch posted 10 years ago Permalink
I think you are right about fitting - if you are a developer who wants code reuse / snippets, do use an appropriate IDE - that´s where such a feature would belong.
laurent_h's profile image laurent_h posted 10 years ago Permalink
Hi,

In the table editor, this feature would be great,
to add automatically customized field throw a popup under "+ Add buton",
it will be a kind of macro to add customized field.

Thanks

Please login to leave a reply, or register at first.