Module Import alias ImportFrom alias ImportFrom alias identifier Assign NameStore Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str With Call AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr ListLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Call AttributeLoad NameLoad attr CompareEq AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad CompareEq AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad CompareEq AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore SubscriptLoad AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Index Num Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad NameLoad NameLoad Return NameLoad decorator_list
N/A N/A logging sqlalchemy sql acoustid tables schema N/A logger N/A N/A logging getLogger __name__ find_or_insert_source N/A N/A conn application_id account_id version N/A None N/A N/A 
    Find a source in the database, create it if it doesn't exist yet.
     N/A N/A N/A conn begin N/A N/A query N/A N/A sql select N/A N/A N/A N/A schema source c id N/A N/A sql and_ N/A N/A N/A N/A schema source c account_id account_id N/A N/A N/A N/A schema source c application_id application_id N/A N/A N/A N/A schema source c version version N/A id N/A N/A N/A N/A conn execute query scalar N/A N/A id None N/A N/A insert_stmt N/A N/A N/A N/A N/A schema source insert values account_id account_id application_id application_id version version N/A id N/A N/A N/A N/A conn execute insert_stmt inserted_primary_key N/A 0 N/A N/A N/A logger info Inserted source %d with account %d and application %d (%s) id account_id application_id version N/A id N/A