Victor Costan | 3653df6 | 2018-02-08 21:38:16 | [diff] [blame] | 1 | // Copyright 2018 The Chromium Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #ifndef SQL_INITIALIZATION_H_ |
| 6 | #define SQL_INITIALIZATION_H_ |
| 7 | |
Victor Costan | e56cc68 | 2018-12-27 01:53:46 | [diff] [blame] | 8 | #include "base/component_export.h" |
Victor Costan | 3653df6 | 2018-02-08 21:38:16 | [diff] [blame] | 9 | |
| 10 | namespace sql { |
| 11 | |
| 12 | // Makes sure that sqlite3_initialize() is called. |
| 13 | // |
| 14 | // Users of the APIs exposed in //sql do not need to worry about SQLite |
Victor Costan | cfbfa60 | 2018-08-01 23:24:46 | [diff] [blame] | 15 | // initialization, because sql::Database calls this function internally. |
Victor Costan | 3653df6 | 2018-02-08 21:38:16 | [diff] [blame] | 16 | // |
| 17 | // The function is exposed for other components that use SQLite indirectly, such |
| 18 | // as Blink. |
Victor Costan | e56cc68 | 2018-12-27 01:53:46 | [diff] [blame] | 19 | COMPONENT_EXPORT(SQL) void EnsureSqliteInitialized(); |
Victor Costan | 3653df6 | 2018-02-08 21:38:16 | [diff] [blame] | 20 | |
| 21 | } // namespace sql |
| 22 | |
| 23 | #endif // SQL_INITIALIZATION_H_ |