Replies: 1 comment 1 reply
-
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What
A way for a user to define data type mappings from synth schema -> data source, and from data source -> synth schema.
Why
Synth schemas have generic, "superset" data types, but many data sources have very specific data types that synth currently has no way of mapping into. For example, Postgres has an
inet
data type, but synth knows nothing about theinet
and the best it could do today is treat it as a string.On a related problem, certain data sources need an extra layer of instructions before de/serializing to/from the synth schema. For example, #15 requires the user to provide some extra info on how to read from or write to binary files. The same can apply to #32 and #33.
In either cases, explicit user intervention is a must. We need some sort of unifying schema so the user can define these "adapters". On the other hand, there is data source specific dev work to serve the other end of the adapter.
How
Here are some preliminary proposals on how we could solve this.
Pros:
Cons:
Perhaps this file can live inside an
adapters
dir inside a namespacePros:
Cons:
Beta Was this translation helpful? Give feedback.
All reactions