Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

convert sqlalchemy.util._collections to list of string

query = session.query(Region.name).all()

query = map(lambda t: t[0], query)
query = list(query)

print(query)
 
PREVIOUS NEXT
Tagged: #convert #list #string
ADD COMMENT
Topic
Name
4+8 =