Home | History | Annotate | Download | only in sql

Lines Matching refs:Connection

5 #include "app/sql/connection.h"
62 Connection::StatementRef::StatementRef()
67 Connection::StatementRef::StatementRef(Connection* connection,
69 : connection_(connection),
74 Connection::StatementRef::~StatementRef() {
80 void Connection::StatementRef::Close() {
85 connection_ = NULL; // The connection may be getting deleted.
88 Connection::Connection()
97 Connection::~Connection() {
101 bool Connection::Open(const FilePath& path) {
109 bool Connection::OpenInMemory() {
113 void Connection::Close() {
122 void Connection::Preload() {
144 bool Connection::BeginTransaction() {
165 void Connection::RollbackTransaction() {
182 bool Connection::CommitTransaction() {
205 bool Connection::Execute(const char* sql) {
211 bool Connection::ExecuteWithTimeout(const char* sql, base::TimeDelta timeout) {
220 bool Connection::HasCachedStatement(const StatementID& id) const {
224 scoped_refptr<Connection::StatementRef> Connection::GetCachedStatement(
244 scoped_refptr<Connection::StatementRef> Connection::GetUniqueStatement(
259 bool Connection::DoesTableExist(const char* table_name) const {
262 Statement statement(const_cast<Connection*>(this)->GetUniqueStatement(
271 bool Connection::DoesColumnExist(const char* table_name,
278 Statement statement(const_cast<Connection*>(this)->GetUniqueStatement(
290 int64 Connection::GetLastInsertRowId() const {
298 int Connection::GetLastChangeCount() const {
306 int Connection::GetErrorCode() const {
312 int Connection::GetLastErrno() const {
323 const char* Connection::GetErrorMessage() const {
325 return "sql::Connection has no connection.";
329 bool Connection::OpenInternal(const std::string& file_name) {
331 NOTREACHED() << "sql::Connection is already open.";
385 void Connection::DoRollback() {
391 void Connection::StatementRefCreated(StatementRef* ref) {
396 void Connection::StatementRefDeleted(StatementRef* ref) {
404 void Connection::ClearCache() {
415 int Connection::OnSqliteError(int err, sql::Statement *stmt) {