Index: sql/connection.h |
diff --git a/sql/connection.h b/sql/connection.h |
index 8155a8fd72d1892b1fcc4cab27075ff2f6efb456..a27d1f4dadeb004e3080af3f6ae3eab459d46edd 100644 |
--- a/sql/connection.h |
+++ b/sql/connection.h |
@@ -116,6 +116,11 @@ class SQL_EXPORT Connection { |
// This must be called before Open() to have an effect. |
void set_exclusive_locking() { exclusive_locking_ = true; } |
+ // Call to cause Open() to restrict access permissions of the |
+ // database file to only the owner. |
+ // TODO(shess): Currently only supported on OS_POSIX. |
Ilya Sherman
2013/07/16 22:35:52
nit: Mebbe clarify that this is a no-op on other p
Scott Hess - ex-Googler
2013/07/17 00:25:37
Done.
|
+ void set_restrict_to_user() { restrict_to_user_ = true; } |
+ |
// Set an error-handling callback. On errors, the error number (and |
// statement, if available) will be passed to the callback. |
// |
@@ -481,6 +486,7 @@ class SQL_EXPORT Connection { |
int page_size_; |
int cache_size_; |
bool exclusive_locking_; |
+ bool restrict_to_user_; |
// All cached statements. Keeping a reference to these statements means that |
// they'll remain active. |