How to use the turbodbc.Rows function in turbodbc

To help you get started, we’ve selected a few turbodbc examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github blue-yonder / turbodbc / python / turbodbc_test / test_options.py View on Github external
def test_options_with_overrides():
    options = make_options(read_buffer_size=Rows(123),
                           parameter_sets_to_buffer=2500,
                           varchar_max_character_limit=42,
                           prefer_unicode=True,
                           use_async_io=True,
                           autocommit=True,
                           large_decimals_as_64_bit_types=True,
                           limit_varchar_results_to_max=True,
                           fix_unicode_allocation=True)

    assert options.read_buffer_size.rows == 123
    assert options.parameter_sets_to_buffer == 2500
    assert options.varchar_max_character_limit == 42
    assert options.prefer_unicode == True
    assert options.use_async_io == True
    assert options.autocommit == True
    assert options.large_decimals_as_64_bit_types == True