Revert of Revert of Prepare HistoryQuickProvider for componentization (patchset ...
[chromium-blink-merge.git] / sql / proxy.cc
blob51048122c3e626942c7a0549b55ea39af01ffc0f
1 // Copyright 2015 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.
5 #include "sql/proxy.h"
7 namespace sql {
9 int sqlite3_create_function_v2(
10 sqlite3 *db,
11 const char *zFunctionName,
12 int nArg,
13 int eTextRep,
14 void *pApp,
15 void (*xFunc)(sqlite3_context*,int,sqlite3_value**),
16 void (*xStep)(sqlite3_context*,int,sqlite3_value**),
17 void (*xFinal)(sqlite3_context*),
18 void (*xDestroy)(void*)) {
19 return ::sqlite3_create_function_v2(
20 db, zFunctionName, nArg, eTextRep, pApp,
21 xFunc, xStep, xFinal, xDestroy);
24 void *sqlite3_commit_hook(sqlite3* db, int(*func)(void*), void* arg) {
25 return ::sqlite3_commit_hook(db, func, arg);
28 } // namespace sql