@classmethod<EOL><INDENT>@coroutine<EOL>@nt_cursor<EOL>def insert(cls, cur, table: str, values: dict):<DEDENT>
keys = cls._COMMA.join(values.keys())<EOL>value_place_holder = cls._PLACEHOLDER * len(values)<EOL>query = cls._insert_string.format(table, keys, value_place_holder[:-<NUM_LIT:1>])<EOL>yield from cur.execute(query, tuple(values.values()))<EOL>return (yield from cur.fetchone())<EOL>
Creates an insert statement with only chosen fields

Args:
    table: a string indicating the name of the table
    values: a dict of fields and values to be inserted

Returns:
    A 'Record' object with table columns as properties