Comments (2)
@chmac Thank you very much for your interest. I did stumble upon the article you mentioned during the implementation, but I was actually inspired by Slick (https://github.com/slick/) since we are using it in web dev for our company.
I am now pretty occupied by the company dev stuff so very little time will spend on this project so far. I am quite interested in supporting different drivers for ModelQ, but now in the code, the sql statement part is very tightly coupled with the query part. So maybe costs some efforts to loose that couple with an extra driver layer for this. Maybe it will be easy to do, but I have no idea for now, :) I will definitely think about this.
Any fork or pull request would be appreciated, :)
from modelq.
@chmac Hi, I have implemented the PostgresQL into ModelQ, please help to check it out if you got some time, :)
So far, I have 2 problems since I am not quite familiar with PostgresQL
- lib/pq doesn't support GetLastInsertID, so I am still struggling with the interface design for the "INSERT .... RETURNING ...." structure, any suggestions?
- I found it seems lib/pq has some problems supporting time.Time scan so it will fail if there is a column has the type timestamp, I think I might be using the api incorrectly.
Any feedbacks would be appreciated.
Thank you very much
from modelq.
Related Issues (19)
- Consideration of Slick code base for some of the complex join tasks HOT 1
- Columns should have type safety HOT 4
- Generalize template generation HOT 7
- Support of Postgres < 8.2 HOT 4
- Problem with Multi-Column Primary Key in MySQL HOT 3
- Joins HOT 6
- Make it easier to generate sqlx code HOT 3
- Support your own queries (for custom things like full text queries) HOT 10
- is this project still active? HOT 5
- dont-touch-timestamp=true is treated as CodeGen.TouchTimestamp=true HOT 1
- time fields with default value CURRENT_TIMESTAMP(X) in sql are still written to with dont-touch-timestamp=True flag HOT 2
- 'json:' tags for fields should support camelCase as a config HOT 1
- Code generated from table with no primary key does not compile
- Prepared statements should close HOT 1
- Plans for aggregate functions?
- modelq does not remove deprecated files HOT 1
- Queries should not silently fail when iterating over the result set
- Postgres date fields become strings HOT 1
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 modelq.