https://linen.dev logo
#contributing-to-airbyte
Title
# contributing-to-airbyte
a

Andy

09/27/2020, 7:34 AM
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

user

09/27/2020, 3:57 PM
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

user

09/27/2020, 3:58 PM
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

user

09/27/2020, 4:01 PM
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

user

09/27/2020, 4:03 PM
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

user

09/27/2020, 4:04 PM
Is that what you were looking for?