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

where to add prefixes to column? #495

Closed
ddesign84 opened this issue May 6, 2014 · 3 comments
Closed

where to add prefixes to column? #495

ddesign84 opened this issue May 6, 2014 · 3 comments

Comments

@ddesign84
Copy link

where to add prefixes to column?

var Person = db.define('person', {
  name : String     //   database column = col_name
});
@dxg
Copy link
Collaborator

dxg commented May 7, 2014

I think what you're looking for is addressed in #488 (amongst other things). Hopefully it will be merged soon.

@dxg
Copy link
Collaborator

dxg commented May 7, 2014

This should now be possible in master.
See the wiki for details.
A new official version will be released in the near future.

Basically you need to do:

var Person = db.define('person', {
  name : { type: 'text', mapsTo: 'col_name' }
});

@dxg dxg closed this as completed May 7, 2014
@ddesign84
Copy link
Author

thank you very much.

dxg added a commit that referenced this issue May 8, 2014
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

2 participants