add default type management and generation of cursor wrapper for sql view