def is_autoincrement(conn, table, field):
 rows = query(conn, "\n        SELECT TRIGGER_NAME\n        FROM USER_TRIGGERS,\n          (SELECT NAME, LISTAGG(TEXT, ' ') WITHIN GROUP (ORDER BY LINE) TEXT\n           FROM USER_SOURCE\n           WHERE TYPE = 'TRIGGER'\n           GROUP BY NAME\n          ) TRIGGER_DEFINITION\n        WHERE TRIGGER_NAME = NAME\n          AND TRIGGERING_EVENT = 'INSERT'\n          AND TRIGGER_TYPE = 'BEFORE EACH ROW'\n          AND TABLE_NAME = :t\n          AND UPPER(TEXT) LIKE UPPER('%.NEXTVAL%')\n          AND UPPER(TEXT) LIKE UPPER('%:NEW.' || :c || '%')\n        ", table, field['COLUMN_NAME'])
 return ((rows and True) or False)

def is_autoincrement ( conn , table , field ) : rows = query ( conn , "\n        SELECT TRIGGER_NAME\n        FROM USER_TRIGGERS,\n          (SELECT NAME, LISTAGG(TEXT, ' ') WITHIN GROUP (ORDER BY LINE) TEXT\n           FROM USER_SOURCE\n           WHERE TYPE = 'TRIGGER'\n           GROUP BY NAME\n          ) TRIGGER_DEFINITION\n        WHERE TRIGGER_NAME = NAME\n          AND TRIGGERING_EVENT = 'INSERT'\n          AND TRIGGER_TYPE = 'BEFORE EACH ROW'\n          AND TABLE_NAME = :t\n          AND UPPER(TEXT) LIKE UPPER('%.NEXTVAL%')\n          AND UPPER(TEXT) LIKE UPPER('%:NEW.' || :c || '%')\n        " , table , field [ 'COLUMN_NAME' ] ) return ( ( rows and True ) or False )
find auto increment fields .