Click here to Skip to main content
12,996,975 members (40,887 online)
Click here to Skip to main content
Articles » Database » Database » General » Downloads


56 bookmarked
Posted 30 Nov 2003

DarkSide SQL Mini Version 1, The embedded database

, 23 Mar 2006
An embedded database library in C++.
Copyright 2000 - 2003 LogicMatrix. All rights reserved. 

This software is distributed under the LogicMatrix Free Software License. This software may be used for any purpose, personal or commercial. Redistributions in binary /source code form are permitted. Commercial redistribution of larger works derived from, or works which bundle this software requires a "Commercial Redistribution License" which can be purchased from LogicMatrix. Contact LogicMatrix for details

Redistributions qualify as Free and non-commercial under one of the following terms:

1) Redistributions are made at no charge beyond the reasonable cost of materials and delivery.
2) Redistributions in binary/source code form must reproduce this Copyright Notice,these license terms, and the disclaimer/limitation of liability set forth as below, in the documentation and/or other materials
provided with the distribution.

The Software is provided on an "AS IS" basis. No warranty is
provided that the Software is free of defects, or fit for a
particular purpose. 

Limitation of Liability 
LogicMatrix shall not be liable for any damages suffered by the Licensee or any third party resulting from use of the Software.



	Purpose: provide an interface to BerkleyDB indexings services

	Author: Vijay Mathew Pandyalakal
	Date:	15/11/2003
	Copyright: logicmatrix
#ifndef BDB_INDEX_H_
#define BDB_INDEX_H_

namespace dsqlm {

	class BdbIndex {
		char db_name[81];
		bool unique;
		Db *db;
		vector<string> vct_keys;
		vector<long> vct_datum;
		BdbIndex(const char* db_name,bool unique);
		void put(const char* key,const char* data);
		void get(const char* key);

		// cursor operations that
		// retrieve all records in
		// the index file
		void getAll();
		long getCursorSize();
		string getKey(long idx);
		long getData(long idx);

		void del(const char* key);	
		void del(const char* key_str,const char* data_str);

		// debugging
		void walkThru();
		void open();
		void close();

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.


This article, along with any associated source code and files, is licensed under The BSD License


About the Author

No Biography provided

You may also be interested in...

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.170622.1 | Last Updated 23 Mar 2006
Article Copyright 2003 by AnOldGreenHorn
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid