sbIDatabaseEngine.idl
Go to the documentation of this file.
1 /*
2  //
3 // BEGIN SONGBIRD GPL
4 //
5 // This file is part of the Songbird web player.
6 //
7 // Copyright(c) 2005-2008 POTI, Inc.
8 // http://songbirdnest.com
9 //
10 // This file may be licensed under the terms of of the
11 // GNU General Public License Version 2 (the "GPL").
12 //
13 // Software distributed under the License is distributed
14 // on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either
15 // express or implied. See the GPL for the specific language
16 // governing rights and limitations.
17 //
18 // You should have received a copy of the GPL along with this
19 // program. If not, go to http://www.gnu.org/licenses/gpl.html
20 // or write to the Free Software Foundation, Inc.,
21 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22 //
23 // END SONGBIRD GPL
24 //
25  */
26 
33 #include "nsISupports.idl"
34 
35 interface nsIFile;
36 
37 
38 [ptr] native CDatabaseQueryPtr(CDatabaseQuery);
39 [ref] native stlCStringRef(std::string);
40 
49 [scriptable, uuid(2fbdee94-afa1-4fd3-abec-c87e5c340681)]
51 {
58  [noscript] PRInt32 SubmitQuery(in CDatabaseQueryPtr aDBQuery);
59 
67  void closeDatabase(in AString aDatabaseGUID);
68 
72  void dumpDatabase(in AString aDatabaseGUID, in nsIFile aOutFile);
73 
78  void dumpMemoryStatistics();
79 
83  long getCurrentMemoryUsage(in long flag);
84 
88  long getHighWaterMemoryUsage(in long flag);
89 
99  const long DATABASE_MEMORYUSED = 0;
100  const long DATABASE_PAGECACHEUSED = 1;
102 
109  void releaseMemory();
110 
116  attribute boolean localeCollationEnabled;
117 
121  readonly attribute AString localeCollationID;
122 
123 };
readonly attribute AString localeCollationID
Returns the identifier of the localized collation sequence.
void closeDatabase(in AString aDatabaseGUID)
Shutdown a database.
void releaseMemory()
Release all non-essential memory. Attempt to release all non-essential memory currently held by SQLit...
var uuid
[USER CODE SHOULD NOT REFERENCE THIS CLASS]
native CDatabaseQueryPtr(CDatabaseQuery)
native stlCStringRef(std::string)
long getCurrentMemoryUsage(in long flag)
Get the current amount of memory in use for a given sqlite3 flag.
PRInt32 SubmitQuery(in CDatabaseQueryPtr aDBQuery)
Submit a query to the database engine for processing.
const long DATABASE_MEMORYUSED
MEMORYUSED: total dynamically alocated memory use.
const long DATABASE_PAGECACHEUSED
attribute boolean localeCollationEnabled
This flag may be set to false to disable locale collation sequences (eg, for consistent unit tests re...
void dumpMemoryStatistics()
Dump memory usage to the console. See components/dbengine/src/sqlite3.c#6625 for details.
void dumpDatabase(in AString aDatabaseGUID, in nsIFile aOutFile)
Dump the contents of a database to file.
const long DATABASE_PAGECACHEOVERFLOW
long getHighWaterMemoryUsage(in long flag)
Get the high water mark memory in use for a given SQLite3 flag.