Task: Check Whether a Table Exists in SQLite
Task: Check Whether a Table Exists in SQLite: a task in Terminal-Lego-15k (Harbor dataset). Write a Python script that reliably checks whether a particular table exists in a SQLite database, and performs conditional logic based on the result: creating and populating tables if they do not exist, or…
The task
Write a Python script that reliably checks whether a particular table exists in a SQLite database, and performs conditional logic based on the result: creating and populating tables if they do not exist, or updating them if they do.
Part of PrimeIntellect/Terminal-Lego-15k.