Comments (2)
Oh, that's a nice feature to have.
I think the best way to implement this is to create a new data_type for JSON, see for an example the uuid data type in this library. In that data type it should be possible to define operators to handle this situation. Thats the wild guess I have.
@rbock could you confirm this is the way to do this?
from sqlpp11-connector-postgresql.
In general, yes, I think so.
At one point, I also thought about using a library like nlohman::json. That might make some usage nicer, but it would also dictate the JSON library.
Thus, a data type that uses text representation internally and offers a couple of special operators/functions is probably the way to go.
from sqlpp11-connector-postgresql.
Related Issues (20)
- Why boost dependency? HOT 2
- AppVeyor failed HOT 4
- Add additional types to ddl2cpp.py? HOT 13
- Compile for armv7 HOT 2
- wrong time point inserted by prepared statement on windows HOT 6
- if schema is public, generated code does not compile HOT 4
- Timezones not handled properly HOT 1
- Connection (& everything) silently fails HOT 1
- [question] Example of using extensions from contrib package HOT 1
- How to use it with sqlpp::connection_pool HOT 1
- Add UUID support HOT 8
- Underlying connector does not support size() HOT 2
- Primary key value of the inserted row HOT 4
- Linker error: undefined reference to `sqlpp::postgresql::connection::connection` HOT 16
- fix double precision floating point. HOT 2
- Compilation error when using group by HOT 3
- Missing error check in last_insert_id()
- How can i get raw sql string from sqlpp::select/update/insert HOT 1
- Breaking changes in sqlpp11 HOT 8
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 sqlpp11-connector-postgresql.