I’m having trouble finding any real source code. O...
# contributing-to-airbyte
a
I’m having trouble finding any real source code. Obviously I’m looking at the wrong paths, but I was curious if somebody could please give me the classpath to some postgres connector code? I’m interested in how auth is handled as well various other items. Thanks so much!
u
Currently, we're using Singer taps and targets behind the scenes for most of the connector code. We'll probably depend on it less over time for our core connectors, but we'll probably have some sort of compatibility long-term.
u
https://github.com/airbytehq/airbyte/blob/master/airbyte-workers/src/main/java/io/airbyte/workers/protocols/singer/SingerCheckConnectionWorker.java is the entrypoint for calling the discovery process on an integration and interpreting the result as a successful or failed connectioon.
u
For the source we're using
singer-io/tap-postgres
which uses
psycopg2
for the connection https://github.com/singer-io/tap-postgres/blob/master/tap_postgres/db.py#L47
u
For the destination we're using
datamill-co/target-postgres
which uses
psycopg2
as well under the hood: https://github.com/datamill-co/target-postgres/blob/master/target_postgres/__init__.py#L13
u
Is that what you were looking for?