Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | |
|
Alexei Svitkine (slow)
2015/06/02 21:29:51
Nit: No (c) for new files.
Scott Hess - ex-Googler
2015/06/02 22:13:44
Done.
| |
| 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_PROXY_H_ | |
| 6 #define SQL_PROXY_H_ | |
| 7 | |
| 8 #include "sql/sql_export.h" | |
| 9 #include "third_party/sqlite/sqlite3.h" | |
| 10 | |
| 11 // TODO(shess): third_party/sqlite does not track component build correctly, so | |
| 12 // each shared library gets a private copy of everything, so sqlite3_* calls | |
| 13 // outside of the main sql/ component don't work right. Hack around this by | |
| 14 // adding pass-through functions while I land a separate fix for the component | |
| 15 // issue. | |
| 16 | |
| 17 // This is only required for tests - if these abilities are desired for | |
| 18 // production code, they should probably do obvious things like live in | |
| 19 // sql::Connection and use C++ wrappers. | |
| 20 | |
| 21 // http://crbug.com/489444 | |
| 22 | |
| 23 namespace sql { | |
| 24 | |
| 25 SQL_EXPORT int sqlite3_create_function_v2( | |
| 26 sqlite3 *db, | |
| 27 const char *zFunctionName, | |
| 28 int nArg, | |
| 29 int eTextRep, | |
| 30 void *pApp, | |
| 31 void (*xFunc)(sqlite3_context*,int,sqlite3_value**), | |
| 32 void (*xStep)(sqlite3_context*,int,sqlite3_value**), | |
| 33 void (*xFinal)(sqlite3_context*), | |
| 34 void (*xDestroy)(void*)); | |
| 35 SQL_EXPORT void *sqlite3_commit_hook(sqlite3*, int(*)(void*), void*); | |
| 36 | |
| 37 } // namespace sql | |
| 38 | |
| 39 #endif // SQL_PROXY_H_ | |
| OLD | NEW |