Comments (2)
Your second example is valid, but not looks enow convenient.
What do you think about such format (not working, need to do):
jsonSql.build({
type: 'select',
table: {
schema: 'schemaName',
name: 'tableName'
},
fields: fields,
condition: condition
});
from json-sql.
I think that's good and schema may be optional that means if we don't define the schema then it should be work for public schema, so both format should work (my opinion)
jsonSql.build({
type: 'select',
table: 'tableName',
fields: fields,
condition: condition
})
and for
jsonSql.build({
type: 'select',
table: {
schema: 'schemaName',
name: 'tableName'
},
fields: fields,
condition: condition
});
from json-sql.
Related Issues (20)
- how to build sql with "OR", "LIKE" word. HOT 5
- How to build Greater than or equal to and Less than or equal to HOT 1
- Multiple inner join? HOT 2
- mysql: Invalid query generated when there is a . in the table name HOT 1
- Where not in Condition
- postgre case-insensitive support HOT 2
- How to do a bulk insert? HOT 1
- How to use the modulo operator with json-sql? HOT 2
- Using ROW_NUMBER() HOT 1
- Incorrect syntax near 'returning'. HOT 2
- escape symbols HOT 1
- Condition should accept string
- Sqlite error with object insertion HOT 1
- [mariadb/mysql] does not support named placeholders like :col1 - use ? instead
- Critical Vulnerable module - underscore module HOT 3
- Can I use .msj to run json-sql?
- Feature request: Support for conversion of BSON `ObjectId` to `String`
- Feature request: Support for Buffers (BLOB/Hex)
- Feature request: Support for `null` Object type
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 json-sql.