The hamsterdb Tutorial (http://hamsterdb.com) 번역문서
transelate/Database 2008/09/04 21:42Page 1
The hamsterdb Tutorial
:hamsterdb 강좌
A Tutorial Book for hamsterdb.
:hamsterdb 강좌 자료.
Copyright © 2007 Christoph Rupp
Created on Friday, March 23, 2007
Last update: Friday, February 08, 2008
This tutorial is a WORK IN PROGRESS. Do not consider it as a finished document.
:이 강좌 자료는 제작중 입니다. 아직 완료 되지 않은 문서임을 고려해 주세요.
Feedback and comments are always welcome. Please send them to contact@hamsterdb.com.
:의견이나 조언은 contact@hamsterdb.com 로 보내주시고 늘 환영합니다.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU
Free Documentation License, Version 1.1 or any later version published by the Free Software
Foundation; with Invariant Sections being „The GNU Free Documentation License“, with no Front-
Cover Texts, and with no Back-Cover Texts. A copy of the license is included in the section entitled
„GNU Free Documentation License“.
:복제 나 배포 혹은 문서 수정은 GNU Free Documentation License (Version 1.1) 혹은 자유소프트웨어재단 에 의해
이후 버전의 License 에 의거하여 허용한다. GNU Free Documentation License 의 Invariant 섹션에 의거하여
앞/뒤 표지의 Text 는 유지 해야 한다. 사본의 모든 권리(권한)는 전적으로 'GNU Free Doumentaion License' 에 의거한다.
-------------------------------------------------
Page 2
Table of Contents
Introduction.........................................................................................................................................3
What is hamsterdb?.........................................................................................................................3
Material Covered............................................................................................................................3
Conventions Used in this Tutorial...................................................................................................3
More Documentation on hamsterdb................................................................................................3
Obtaining the Most Recent Versions...............................................................................................3
hamsterdb Licensing.......................................................................................................................4
Getting Started.....................................................................................................................................4
Building for UNIX/POSIX systems................................................................................................4
Building for Microsoft Windows.....................................................................................................4
Porting hamsterdb to Other Platforms.............................................................................................4
Creating a Database.............................................................................................................................5
Creating an In-Memory Database....................................................................................................6
Creating a Record Number Database...............................................................................................6
Opening a Database.............................................................................................................................7
Changing the Default Key Sorting.......................................................................................................7
Inserting Database Items......................................................................................................................8
Deleting Database Items.......................................................................................................................9
Looking up Database Items..................................................................................................................9
Working with Database Cursors.........................................................................................................10
Creating a Database Cursor...........................................................................................................10
Moving Database Cursors..............................................................................................................11
Inserting Database Items with Cursors..........................................................................................12
Looking up Database Items with Cursors......................................................................................12
Overwriting Database Items with Cursors.....................................................................................13
Deleting Database Items with Cursors...........................................................................................13
Cloning a Database Cursor............................................................................................................13
Closing a Database Cursor.............................................................................................................13
Closing a Database............................................................................................................................13
Working with Database Environments...............................................................................................14
Creating a new Environment.........................................................................................................14
Creating In-Memory Environments..........................................................................................15
Opening an Environment...............................................................................................................15
Creating a Database in an Environment........................................................................................16
Opening a Database in an Environment........................................................................................16
Renaming a Database in an Environment......................................................................................16
Removing a Database from an Environment.................................................................................17
Closing an Environment................................................................................................................17
Working with Duplicate Keys............................................................................................................17
Enabling Duplicate Keys...............................................................................................................17
Inserting Duplicate Keys...............................................................................................................17
Traversing Duplicate Keys............................................................................................................18
Replacing Duplicate Keys.............................................................................................................18
Get the Number of Duplicate Keys................................................................................................18
Deleting Duplicate Keys................................................................................................................19
The C++ API.....................................................................................................................................19
Appendix I: The GNU General Public License 2.0............................................................................20
Appendix II: The GNU General Public License 3.0..........................................................................24
Appendix III: The GNU Free Documentation License......................................................................35
Trackback Address :: http://www.microstrong.pe.kr/tt/trackback/23

