~bigbes/core-go

ref: 32f482812bf9c3688bfc1c2df423db8a4777f34c core-go/database/sq.go -rw-r--r-- 2.6 KiB
20be483e — Conrad Hoffmann 9 months ago
Don't uppercase error messages
39c3fd1e — Conrad Hoffmann 9 months ago
Run modernize

See https://pkg.go.dev/golang.org/x/tools/gopls/internal/analysis/modernize

It's mostly interface{} -> any, but also two quite useful applications
of slices.Contains.
8110e635 — Conrad Hoffmann 3 years ago
database: add helpers to fetch all columns

The current solution of fetching columns based on the GraphQL context
has some limits. While probably not the solution for all use-cases, it
sometimes can be desirable to simply fetch all columns from the database
when retrieving objects.

This commit adds two simple functions doing just that. They can be used
when building SQL queries, like

    query := database.SelectAll(new(model.Email))

and

    rows.Scan(database.ScanAll(&email)...)
33bc768c — Adnan Maolood 4 years ago
database: Remove Apply
07056613 — Drew DeVault 5 years ago
database: expand field map for composite fields

This allows models to fetch multiple SQL columns to obtain the data
necessary to compute a single composite GraphQL field, while still
avoiding unnecessary fetches if those fields are not queried.
4cc9b34f — Drew DeVault 5 years ago
database.Apply: add support for non-pointer fields
af2afebd — Drew DeVault 5 years ago
Add legacy webhooks worker implementation
1d2a30cb — Drew DeVault 5 years ago
Import GQL server interfaces from gql.sr.ht