~bigbes/core-go

ref: e7b8e02696a1f1bcd365baa7f67fa360a201bf5b core-go/database/sq.go -rw-r--r-- 2.6 KiB
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