pg icon indicating copy to clipboard operation
pg copied to clipboard

Golang ORM with focus on PostgreSQL features and performance

Results 109 pg issues
Sort by recently updated
recently updated
newest added

Here is function for migrate models for development when we change fields (add or remove fields) from model, i hope it helped, and we may need add more type to...

Can pg ORM setup to cache the query data at memory or other ?

If support, how to use

Issue tracker is used for reporting bugs and discussing new features. Please use [Discord](https://discord.gg/rWtp5Aj) or [stackoverflow](https://stackoverflow.com) for supporting issues. go-pg does not support indexing currently, we have to create indexing...

Say that you have something like this: ```go db.RunInTransaction(ctx, func(tx *pg.Tx) error { inserted, err := tx.Model(). SelectOrInsert() }) ``` if this code runs concurrently you will get a transaction...

Hi, when I try the README.md example, `db.Model(story).Relation("Author").Where("story.id = ?", story1.ID).Select()` will simply run `SELECT ... FROM "stories" AS "story" LEFT JOIN "users" AS "author" ON "author"."id" = "story"."author_id" WHERE...

Since `go-pg` already knows what the table names and foreign keys are there could be a `JoinRelation()`. It could work like this: ```Golang // Normal Join db.Model(&items). Join(`INNER JOIN "items_to_orders"...

Issue tracker is used for reporting bugs and discussing new features. Please use [Discord](https://discord.gg/rWtp5Aj) or [stackoverflow](https://stackoverflow.com) for supporting issues. Hi, I'm using go-pg to add prefix to a value of...

Hello, Did you know if it there is a way to recursively update a nested struct ? Exemple : ``` type A struct { Id int Name string B B...

I am creating a many 2 many table with one primary key as bigserial auto-increment and then the two FK with a unique group. The two foreign keys ids are...