dyma solovei
dyma solovei
Something I can't make my up about is this: When building `ALTER COLUMN SET DATA TYPE new_type`, which option should we provide? ```go // Similarly to Column in SelectQuery, but...
> That would make API cleaner and we won't need chainable/parent queries any more. WDYT? **tldr;** Yes, I definitely agree that it would make sense to handle each modification separately,...
After giving it some thought here's roughly the solution I came up with: 1. ~~Define `AlterTableQuery`, which has methods for individual table-modifications~~ ~~The reason I want to continue with the...
You're right, I too thought that returning `[]QueryWithArgs` felt awkward. The reason I would like the dialects to only build the query (doesn't have to be a "bun query") itself...
As [per documentation](https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-CONNSTRING-URIS), the DSN should be a valid URL: > The connection URI needs to be encoded with [percent-encoding](https://tools.ietf.org/html/rfc3986#section-2.1) if it includes symbols with special meaning in any of...
> I feel like there should be safe way to check/use DSN without panic. Maybe just export parseDSN function so users can check error on theirs end. @betrok here `parseDSN`...
As far as I can tell, the reason the sequence was not created is that in SQLite you get unique autoincremented ID column (called `ROWID`) for any table that has...
Hi @ivoras ! `nullzero` in the `bun` tag only controls how the value is appended to the query, so this should work: ```go withNil := S{D: nil} db.NewInsert().Model(&withNil).Exec(ctx) ``` Scanning,...
**tl;dr:** Try using `.Value()` method to control which value gets appended to the query. The following should work: ```go db.NewUpdate(). Model(entity). Column("is_active"). Value("is_active", "false"). // will substitute to is_active =...