Comments (3)
Seems to be working for me. Please make sure all Bun dependencies in go.mod file have the same version:
github.com/uptrace/bun v0.2.13
github.com/uptrace/bun/dialect/pgdialect v0.2.13
github.com/uptrace/bun/driver/pgdriver v0.2.13
github.com/uptrace/bun/extra/bundebug v0.2.13
github.com/uptrace/bun/extra/bunotel v0.2.13
from bun.
🤦 Thanks @vmihailenco, my versions were not lined up in the go.mod, working fine now. This might become a common gotcha, possibly worth mentioning in the docs to help doofuses like me, haha
from bun.
Actually it might be good to make the plugin modules explicitly mark their dependency on the main bun module with the same version.
So for example in bun/dialect/pgdialect/go.mod
it should say
require github.com/uptrace/bun v0.2.13
Currently it says v0.1.1
instead of v0.2.13
from bun.
Related Issues (20)
- [bug] Query Select uses wrong table name when ModelTableExpr is called HOT 2
- I want to be able to use PostgreSQL's parametric placeholders.
- inconsistent behavior for ModelTableExpr (select <--> create/insert/update/delete)
- race detected in ```schema.Field.Clone()``` HOT 2
- Issue with BeforeAppendModel when selecting columns to update HOT 1
- Go migrations are not discovered
- Custom sum column on a relation
- In v1.2, about 'unique' tag option in embedded structures HOT 1
- Call BeforeAppendModel on embedded types
- incorrect CTE generation
- Is []int64 supported for Arrays
- Support for DuckDB dialect
- Ambiguous Column Reference Id
- Scan error on column: bun: Scan(unsupported [32]uint8)"
- m2m relations with composite keys
- can't scan 1 (float32) into float32
- Issue: Panic on Bulk Upsert with Pointer Fields in Slice of Interfaces HOT 1
- Documentation Pgx section update HOT 2
- Is it possible to insert a comment before or after a sql query?
- how can i tag index in struct filed?
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 bun.