

def __init__(self, id, schedule, host, database, username, password, select_query, insert_query, table, depends_on=None):
    'Constructor for the SqlNode class\n\n        Args:\n            id(str): id of the object\n            schedule(Schedule): pipeline schedule\n            database(str): database name on the RDS host\n            sql(str): sql to be executed\n            table(str): table to be read\n        '
    if (not isinstance(schedule, Schedule)):
        raise ETLInputError('Input schedule must be of the type Schedule')
    if (not depends_on):
        depends_on = list()
    kwargs = {
        'id': id,
        'type': 'SqlDataNode',
        'schedule': schedule,
        'database': database,
        'selectQuery': select_query,
        'insertQuery': insert_query,
        'table': table,
        'dependsOn': depends_on,
    }
    super(PostgresNode, self).__init__(**kwargs)

dataset/ETHPy150Open coursera/dataduct/dataduct/pipeline/postgres_node.py PostgresNode.__init__/original