summaryrefslogtreecommitdiffstats
path: root/sql/proxy.cc
blob: 51048122c3e626942c7a0549b55ea39af01ffc0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "sql/proxy.h"

namespace sql {

int sqlite3_create_function_v2(
    sqlite3 *db,
    const char *zFunctionName,
    int nArg,
    int eTextRep,
    void *pApp,
    void (*xFunc)(sqlite3_context*,int,sqlite3_value**),
    void (*xStep)(sqlite3_context*,int,sqlite3_value**),
    void (*xFinal)(sqlite3_context*),
    void (*xDestroy)(void*)) {
  return ::sqlite3_create_function_v2(
      db, zFunctionName, nArg, eTextRep, pApp,
      xFunc, xStep, xFinal, xDestroy);
}

void *sqlite3_commit_hook(sqlite3* db, int(*func)(void*), void* arg) {
  return ::sqlite3_commit_hook(db, func, arg);
}

}  // namespace sql