tangled
alpha
login
or
join now
moth11.net
/
rvcx
3
fork
atom
backend for xcvr appview
3
fork
atom
overview
issues
4
pulls
pipelines
sql syntax
moth11.net
5 months ago
ec8f6ae8
ae11d64c
+6
-4
1 changed file
expand all
collapse all
unified
split
server
internal
db
lexicon.go
+6
-4
server/internal/db/lexicon.go
···
367
367
}
368
368
369
369
func (s *Store) GetImage(uri string, ctx context.Context) (*types.Image, error) {
370
370
-
row := s.pool.QueryRow(ctx, `SELECT FROM images (
370
370
+
row := s.pool.QueryRow(ctx, `SELECT (
371
371
did,
372
372
signet_uri,
373
373
blob_cid,
···
379
379
color,
380
380
cid,
381
381
posted_at
382
382
-
) WHERE uri = $1`, uri)
382
382
+
) FROM images WHERE uri = $1`, uri)
383
383
var image types.Image
384
384
err := row.Scan(&image.DID,
385
385
&image.SignetURI,
···
400
400
}
401
401
402
402
func (s *Store) GetImageDidCID(did string, cid string, ctx context.Context) (*types.Image, error) {
403
403
-
row := s.pool.QueryRow(ctx, `SELECT FROM images (
403
403
+
row := s.pool.QueryRow(ctx, `SELECT (
404
404
uri,
405
405
signet_uri,
406
406
cid,
···
411
411
nick,
412
412
color,
413
413
posted_at
414
414
-
) WHERE did = $1 AND blob_cid = $2`, did, cid)
414
414
+
)
415
415
+
FROM images
416
416
+
WHERE did = $1 AND blob_cid = $2`, did, cid)
415
417
var image types.Image
416
418
err := row.Scan(&image.URI,
417
419
&image.SignetURI,