summaryrefslogtreecommitdiffstats
path: root/app/sql/statement.h
diff options
context:
space:
mode:
Diffstat (limited to 'app/sql/statement.h')
-rw-r--r--app/sql/statement.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/sql/statement.h b/app/sql/statement.h
index 22682c8..0fbbfba 100644
--- a/app/sql/statement.h
+++ b/app/sql/statement.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Copyright (c) 2010 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.
@@ -11,6 +11,7 @@
#include "app/sql/connection.h"
#include "base/basictypes.h"
#include "base/ref_counted.h"
+#include "base/string16.h"
namespace sql {
@@ -104,6 +105,7 @@ class Statement {
bool BindDouble(int col, double val);
bool BindCString(int col, const char* val);
bool BindString(int col, const std::string& val);
+ bool BindString16(int col, const string16& value);
bool BindBlob(int col, const void* value, int value_len);
// Retrieving ----------------------------------------------------------------
@@ -125,12 +127,14 @@ class Statement {
int64 ColumnInt64(int col) const;
double ColumnDouble(int col) const;
std::string ColumnString(int col) const;
+ string16 ColumnString16(int col) const;
// When reading a blob, you can get a raw pointer to the underlying data,
// along with the length, or you can just ask us to copy the blob into a
// vector. Danger! ColumnBlob may return NULL if there is no data!
int ColumnByteLength(int col) const;
const void* ColumnBlob(int col) const;
+ bool ColumnBlobAsString(int col, std::string* blob);
void ColumnBlobAsVector(int col, std::vector<char>* val) const;
void ColumnBlobAsVector(int col, std::vector<unsigned char>* val) const;