profile
viewpoint

georgysavva/scany 172

Library for scanning data from a database into Go structs and more

georgysavva/instarate 2

Facemash bot for telegram messenger

georgysavva/instarate-elixir 2

Facemash bot for telegram messenger

georgysavva/oauth2 1

OAuth2 system implementation

georgysavva/awesome-go 0

A curated list of awesome Go frameworks, libraries and software

georgysavva/binding 0

Reflectionless data binding for Go's net/http (not yet a stable 1.0, but not likely to change much either)

fork ferhatelmas/gopher-reading-list

A curated selection of blog posts on Go

fork in 11 hours

startedgeorgysavva/scany

started time in a day

startedbraintree/pg_column_byte_packer

started time in 2 days

startedgeorgysavva/scany

started time in 2 days

startedgeorgysavva/scany

started time in 5 days

fork cybernetics/scany

Library for scanning data from a database into Go structs and more

fork in 5 days

startedgeorgysavva/scany

started time in 5 days

startedgeorgysavva/scany

started time in 7 days

startedunpaper/unpaper

started time in 7 days

startedmitchellh/mapstructure

started time in 7 days

startedGetStream/build-viking-sample

started time in 8 days

startedgeorgysavva/scany

started time in 10 days

startedgeorgysavva/scany

started time in 11 days

startedvectorizedio/redpanda

started time in 13 days

startedgeorgysavva/scany

started time in 14 days

startedangrave/SystemProgramming

started time in 15 days

startedgeorgysavva/scany

started time in 15 days

startedgeorgysavva/scany

started time in 17 days

created repositoryjackc/goldilocks

created time in 18 days

startedgeorgysavva/scany

started time in 18 days

created repositoryjackc/go_pgx_compiled_size

created time in 18 days

startedgeorgysavva/scany

started time in 20 days

issue commentgeorgysavva/scany

❓ Use array_agg

I ran into same problem, i want to implement the decoder for my type, but as my type is unknown and is built on runtime using joins, how would I implement decoder ? If you can give be a direction, it would be great .

sxwebdev

comment created time in 20 days

startedBenMorel/dev-certificates

started time in 21 days

fork jackc/ruby-pg

A PostgreSQL client library for Ruby

fork in 22 days

issue closedgeorgysavva/scany

Scanning into a pointer to string inside struct

Hello, I read through the note in doc, but i need to implement some columns as null-able field. Is there any workaround to scan pointer to string using pgxscan ?

My Struct is as such image

It is able to scan to pointer in nested struct, which is of composite type, but is not able to scan to plain pointer to nil. Am I missing something ?

image

closed time in 23 days

pragyanaryal

issue commentgeorgysavva/scany

Scanning into a pointer to string inside struct

Hello, Sorry, It was my fault . Data type mismatch between db and go's code was causing the problem. I had implemented int on the database but the field was string on the go's side, upon changing, it behaves fine. It scans fine now as intended. The link in docs I was pointing towards was: https://pkg.go.dev/github.com/georgysavva/scany/pgxscan#hdr-Note_about_pgx_custom_types

image Upon reading, it cannot scan into pointer, I was deviated.

Thanks, this is really nice package. :)

pragyanaryal

comment created time in 24 days

issue commentgeorgysavva/scany

scanning to nested structs

we will definitely try it out @georgysavva thank you very much for your work.

kfirufk

comment created time in 25 days

issue openedgeorgysavva/scany

Scanning to pointer to string

Hello, I read through the note in doc, but i need to implement some columns as null-able field. Is there any workaround to scan pointer to string using pgxscan ?

My Struct is as such image

It is able to scan to pointer in nested struct, which is of composite type, but is not able to scan to plain pointer to nil. Am I missing something ?

image

created time in 25 days

startedgeorgysavva/scany

started time in a month

more