How can I test if an array exists?


#1

I want to write a “createDB” python function that will create array in the db, but only if they don’t already exist. ow do i test if an array exists?

I could try to create and test for failure, but is there a more elegant way?


#2

iquery -aq “list()” will show you a list of arrays in the database. Your Python code may parse the result to see if the array already exists.