예제 #1
0
def test_blob():
    common = SQLCommon(app_config,
                       table_name=BLOB_TABLE_NAME,
                       table_def=blob_fields)

    common.test_createtable()

    common.test_insert_blob(PostgreSQL96Dialect.make_blob)
예제 #2
0
def test_blob():
    common = SQLCommon(app_config,
                       inspect_cols_query=FIND_COLUMNS_STMT,
                       table_name=BLOB_TABLE_NAME.upper(),
                       table_def=blob_fields)

    common.test_createtable()

    common.test_insert_blob(None)
def test_blob():
    common = SQLCommon(app_config,
                       table_name=BLOB_TABLE_NAME,
                       inspect_cols_query=FIND_COLUMNS_STMT,
                       table_def=blob_fields,
                       baseClass=SQLiteFeedDestination)

    common.test_createtable()

    common.test_insert_blob(SqliteDialect.make_blob)
def test_insert_row():
    common = SQLCommon(app_config,
                       inspect_cols_query=FIND_COLUMNS_STMT,
                       baseClass=SQLiteFeedDestination)

    common.test_insert_row(result_payload)
def test_get_parameters():
    common = SQLCommon(app_config,
                       inspect_cols_query=FIND_COLUMNS_STMT,
                       baseClass=SQLiteFeedDestination)

    common.test_get_parameters()
예제 #6
0
def test_droptable():
    common = SQLCommon(app_config)

    common.test_droptable()
예제 #7
0
def test_altertable():
    common = SQLCommon(app_config)

    common.test_altertable()
예제 #8
0
def test_delete_row():
    common = SQLCommon(app_config)

    common.test_delete_row()
예제 #9
0
def test_insert_row():
    common = SQLCommon(app_config,
                       inspect_cols_query=FIND_COLUMNS_STMT,
                       table_name='ALL_TYPES')

    common.test_insert_row(result_payload)
예제 #10
0
def test_insert_row():
    common = SQLCommon(app_config, setup_stmt=SETUP_STMT)

    common.test_insert_row(result_payload)
예제 #11
0
def test_createtable():
    common = SQLCommon(app_config)

    common.test_createtable()
예제 #12
0
def test_get_parameters():
    common = SQLCommon(app_config)

    common.test_get_parameters()
예제 #13
0
def test_droptable():
    common = SQLCommon(app_config,
                       inspect_cols_query=FIND_COLUMNS_STMT,
                       table_name='ALL_TYPES')

    common.test_droptable()
예제 #14
0
def test_altertable():
    common = SQLCommon(app_config,
                       inspect_cols_query=FIND_COLUMNS_STMT,
                       table_name='ALL_TYPES')

    common.test_altertable(col_type='NVARCHAR2(2000)')
예제 #15
0
def test_update_row():
    common = SQLCommon(app_config,
                       inspect_cols_query=FIND_COLUMNS_STMT,
                       table_name='ALL_TYPES')

    common.test_update_row(MAX_TEXT_SIZE, result_payload)
def test_update_row():
    common = SQLCommon(app_config,
                       inspect_cols_query=FIND_COLUMNS_STMT,
                       baseClass=SQLiteFeedDestination)

    common.test_update_row(MAX_TEXT_SIZE, result_payload)
def test_altertable():
    common = SQLCommon(app_config,
                       inspect_cols_query=FIND_COLUMNS_STMT,
                       baseClass=SQLiteFeedDestination)

    common.test_altertable()
예제 #18
0
def test_update_row():
    common = SQLCommon(app_config, setup_stmt=SETUP_STMT)

    common.test_update_row(MAX_TEXT_SIZE, result_payload)