aboutsummaryrefslogtreecommitdiff
path: root/internal/dbstore/sql/table-exists.sql
diff options
context:
space:
mode:
Diffstat (limited to 'internal/dbstore/sql/table-exists.sql')
-rw-r--r--internal/dbstore/sql/table-exists.sql6
1 files changed, 6 insertions, 0 deletions
diff --git a/internal/dbstore/sql/table-exists.sql b/internal/dbstore/sql/table-exists.sql
new file mode 100644
index 0000000..09d32a4
--- /dev/null
+++ b/internal/dbstore/sql/table-exists.sql
@@ -0,0 +1,6 @@
+SELECT EXISTS(
+ SELECT 1
+ FROM sqlite_schema
+ WHERE type = 'table'
+ AND name = ?
+)