from turbodbc_intern import Options

def make_options(read_buffer_size=None,
                 parameter_sets_to_buffer=None,
                 prefer_unicode=None,
                 use_async_io=None):
    options = Options()

    if not read_buffer_size is None:
        options.read_buffer_size = read_buffer_size

    if not parameter_sets_to_buffer is None:
        options.parameter_sets_to_buffer = parameter_sets_to_buffer

    if not prefer_unicode is None:
        options.prefer_unicode = prefer_unicode

    if not use_async_io is None:
        options.use_async_io = use_async_io

    return options

@@ -193,16 +193,1548 @@
 =None):%0A
+    %22%22%22%0A    Create options that control how turbodbc interacts with a database. These%0A    options affect performance for the most part, but some options may require adjustment%0A    so that all features work correctly with certain databases.%0A%0A    If a parameter is set to %60None%60, this means the default value is used.%0A%0A    :param read_buffer_size: Affects performance. Controls the size of batches fetched from the%0A     database when reading result sets. Can be either an instance of %60turbodbc.Megabytes%60 (recommended)%0A     or %60turbodbc.Rows%60.%0A    :param parameter_sets_to_buffer: Affects performance. Number of parameter sets (rows) which shall be%0A     transferred to the server in a single batch when executemany() is called. Must be an integer.%0A    :param use_async_io: Affects performance. Set this option to %60True%60 if you want to use asynchronous%0A     I/O, i.e., while Python is busy converting database results to Python objects, new result sets are%0A     fetched from the database in the background.%0A    :param prefer_unicode: May affect functionality and performance. Some databases do not support%0A     strings encoded with UTF-8, leading to UTF-8 characters being misinterpreted, misrepresented, or%0A     downright rejected. Set this option to %60True%60 if you want to transfer character data using the%0A     UCS-2/UCS-16 encoding that use (multiple) two-byte instead of (multiple) one-byte characters.%0A    :return: An option struct that is suitable to pass to the %60turbodbc_options%60 parameter of%0A     %60turbodbc.connect()%60%0A    %22%22%22%0A
     opti

Add docstring to options