Comments (2)
Just added an additional parameter to "persist.define" which allows overriding the tableName (see the updated README). Columns already have this ability using dbColumnName when defining the column.
Person = persist.define("Person", {
"name": type.STRING,
"createdDate": { type: type.DATETIME, dbColumnName: 'date_column1' },
}, {
tableName: 'my_person_table'
})
from node-persist.
Great, thanks!
As to lowercasing column names, I think postgresql is the one that's doing it. I haven't tried any other DBs.
from node-persist.
Related Issues (20)
- Typo in database.json example HOT 2
- whereIn doesn't work with more than one value in 'values' on pg HOT 1
- Issue with hasMany. Associated entities do not persist.
- dbColumnName ignored on 'updatePartial'
- Some issues with Oracle DB HOT 2
- Too many connections
- Please any example using node-pool
- Relational mapping HasMany and HasOne not working properly HOT 3
- Error while saving many to many association in oracle HOT 3
- List of supported data types and matching equivalents in various databases
- Query.whereIn on Oracle report ORA-32109: invalid column or parameter position
- onSave should be able to change the isNew state HOT 1
- Enhanced validation function HOT 1
- mysql driver: Error: connect ECONNREFUSED HOT 1
- Connection to ORA
- Connection is undefined or null HOT 1
- Query results are udefined HOT 1
- This is really an odd issue!!!!!!!!!!!!! HOT 1
- Query.All on Oracle returns 1 result - SQL returns 133 HOT 1
- How to use oracle transaction with node.js HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-persist.