brianc/node-sql

Ability to flag properties as hidden

Opened this issue · 0 comments

What do you think about implementing the idea of a "hidden" property.

For instance, say you have a user table with a password column, you may want to select the entire column but shouldn't be pulling the password down. It would be pretty cool to not have to manually add all of the columns you need. Some sort of dsl within node-sql could be an interesting solution for this.

It could also be as easy as implementing some other method, such as select(table.public()). I'm planning to implement but want to know if anyone else has ideas/thoughts and if it makes sense as a part of node-sql.