Search for usage in LXR

KDbAdminTools Class Reference

#include <KDbAdmin.h>

Inheritance diagram for KDbAdminTools:

Public Member Functions

virtual bool vacuum (const KDbConnectionData &data, const QString &databaseName)
- Public Member Functions inherited from KDbResultable
 KDbResultable (const KDbResultable &other)
void clearResult ()
KDbMessageHandlermessageHandler () const
KDbResultableoperator= (const KDbResultable &other)
KDbResult result () const
virtual QString serverResultName () const
void setMessageHandler (KDbMessageHandler *handler)
void showMessage ()

Additional Inherited Members

- Protected Attributes inherited from KDbResultable
Private *const d
KDbResult m_result

Detailed Description

An interface containing a set of tools for database administration.

Can be implemented in database drivers.

See also

Definition at line 30 of file KDbAdmin.h.

Constructor & Destructor Documentation

◆ KDbAdminTools()

KDbAdminTools::KDbAdminTools ( )

Definition at line 32 of file KDbAdmin.cpp.

◆ ~KDbAdminTools()

KDbAdminTools::~KDbAdminTools ( )

Definition at line 37 of file KDbAdmin.cpp.

Member Function Documentation

◆ vacuum()

bool KDbAdminTools::vacuum ( const KDbConnectionData & data,
const QString & databaseName )

Performs vacuum (compacting) for connection data. Can be implemented for your driver. Note: in most cases the database should not be opened.

Currently it is implemented for SQLite drivers.

true on success, false on failure (then you can get error status from the KDbAdminTools object).

Definition at line 42 of file KDbAdmin.cpp.

The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:21:01 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.