Exemple #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)
Exemple #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()
Exemple #6
0
def test_droptable():
    common = SQLCommon(app_config)

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

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

    common.test_delete_row()
Exemple #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)
Exemple #10
0
def test_insert_row():
    common = SQLCommon(app_config, setup_stmt=SETUP_STMT)

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

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

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

    common.test_droptable()
Exemple #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)')
Exemple #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()
Exemple #18
0
def test_update_row():
    common = SQLCommon(app_config, setup_stmt=SETUP_STMT)

    common.test_update_row(MAX_TEXT_SIZE, result_payload)