Comments (4)
Hey @subhendukundu you can now use the Raw
class to send raw sql to the query builder checkout the docs here
https://workers-qb.massadas.com/advanced-queries/raw-sql/
from workers-qb.
import { Raw } from 'workers-qb'
Module '"workers-qb"' has no exported member 'Raw'.
from workers-qb.
My bad, can you update to the latest version (v0.1.5) and try again
from workers-qb.
Hey! It was working correctly on local. Now I have published it on production, Raw
. Do you have any api running using new Raw
?
await db.insert({
tableName: "posts",
data: {
id: generateUniqueIdWithPrefix(),
user_id: id,
created_at: new Raw("CURRENT_TIMESTAMP"), // Removed this one, and working.
},
});
from workers-qb.
Related Issues (20)
- Migrations support? HOT 2
- Run prettier on project and commit HOT 1
- Adding support for UPSERT or ON CONFLICT HOT 1
- JOIN support HOT 6
- Syntax error on UPDATE HOT 3
- Advanced where clause showing an error HOT 2
- Order By's DESC/ASC not working HOT 1
- Bulk insert/update we need it HOT 8
- LIKE function not working
- db.batch feature HOT 3
- UPSERT [new feature] HOT 2
- Numbered parameters don't work in miniflare HOT 1
- 0.1.8 HOT 3
- type definitions missing from v1.0.0 HOT 1
- sorry. please delete this issue
- Thanks and quick question about TIMESTAMP HOT 2
- How can I mark an insert as only returning one row? HOT 2
- alias for main table? HOT 2
- Not null conditions HOT 4
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 workers-qb.