libsql-client-go icon indicating copy to clipboard operation
libsql-client-go copied to clipboard

Support Marshal/Unmarshal JSON Byte Slice - HTTP driver

Open sahidrahman404 opened this issue 1 year ago • 0 comments

Currently If you use the HTTP driver, you will get this error if you try to marshal a struct field to JSON byte slice or unmarshal JSON byte slice into a struct field. The error looks like this

sql: Scan error on column index 9, name \"genres\": unsupported Scan, storing driver.Value type map[string]interface {} into type *[]uint8

You won't get the above error if you use the WS driver

sahidrahman404 avatar Jun 25 '23 07:06 sahidrahman404