(curs, lang_name)
return res[0]
Does PL exists?
Does PL exists?
Does PL exists?
def exists_language(curs, lang_name):
    """Does PL exists?"""
    q = """select count(1) from pg_language
           where lanname = %s"""
    curs.execute(q, [lang_name])
    res = curs.fetchone()
    return res[0]
def exists_language ( curs , lang_name ) : q = """select count(1) from pg_language
           where lanname = %s""" curs . execute ( q , [ lang_name ] ) res = curs . fetchone ( ) return res [ 0 ]