summaryrefslogtreecommitdiffstats
path: root/sql/connection.h
diff options
context:
space:
mode:
Diffstat (limited to 'sql/connection.h')
-rw-r--r--sql/connection.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sql/connection.h b/sql/connection.h
index 5bbdb97..2f6c71f 100644
--- a/sql/connection.h
+++ b/sql/connection.h
@@ -361,10 +361,10 @@ class SQL_EXPORT Connection {
// Info querying -------------------------------------------------------------
- // Returns true if the given table exists.
+ // Returns true if the given table (or index) exists. Instead of
+ // test-then-create, callers should almost always prefer "CREATE TABLE IF NOT
+ // EXISTS" or "CREATE INDEX IF NOT EXISTS".
bool DoesTableExist(const char* table_name) const;
-
- // Returns true if the given index exists.
bool DoesIndexExist(const char* index_name) const;
// Returns true if a column with the given name exists in the given table.