def importStart():

    dss = DbSeoulSubway()
    if dss.open_api_service_connection() is False:
        raise OpenServiceDataImporterException("Can't not Open Database Connection")

    svc_nm = SB_SERVICE.SVC_SEARCHSTNBYSUBWAYLINESERVICE

    lines = SB_API_PARAM.LINE_NUM.list()
    for line in lines:
        req_loop = SB_API_RequestMaker.get_request_byservice(svc_nm)
        req_loop.START_INDEX = 0
        req_loop.END_INDEX = -1
        req_loop.LINE_NUM = line[K_KEY]

        _Save2Db(svc_nm, req_loop, dss)

    dss.close_api_service_connection(True)
    return True
def importStart():

    dss = DbSeoulSubway()
    if dss.open_api_service_connection() is False:
        raise OpenServiceDataImporterException("Can't not Open Database Connection")

    svc_nm = SB_SERVICE.SVC_SEARCHSTNTIMETABLEBYIDSERVICE
    dss.tables_truncate(svc_nm)

    inouts      = SB_API_PARAM.INOUT_TAG.list()
    weeks       = SB_API_PARAM.WEEK_TAG.list()
    stations    = dss.get_all_staticon_code()

    for std in stations:
        for inout in inouts:
            for week in weeks:
                sub_result = _importSpecific(dss, svc_nm, std, week, inout)
                if sub_result is False:
                    raise OpenServiceDataImporterException("SVC_SEARCHSTNTIMETABLEBYIDSERVICE ImportFailed...")

    dss.close_api_service_connection(True)
    return True