electric-sql / electric-sql/electric

Feature request: Proper types in shape log

Open
#3,725 0 comments 0 reactions 0 assignees View on GitHub
feature request triage
Dominant language
TypeScript
Stars
10.4k
Forks
375
Avg merge
3d 1h
Merged PRs (30d)
18

Description

**Is your feature request related to a problem? Please describe.**
Why does the shape API serialize every column as a string? It makes it difficult/inefficient to decode JSON to model types on the client for example in Swift. I either have to write a custom decoder to parse every string to its proper type on the client which is inefficient, or modify server code to recast every type properly. Both of these solutions are difficult to maintain and introduce inefficiency either on the server or the client, which makes me wonder why electric doesn't just do this directly?

**Describe the solution you'd like**
Encode columns best effort to their respective JSON type.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.