Pages Navigation Menu

Quick Start Guide

Quick Start Guide

Looking to dive right in? The documentation has the details, but we know that sometimes the bare bones is all that’s required. So here it is: the Ultra-Light KitaroDB Handbook for Creating an ASync Data Store.

Before you begin

Make sure you’ve downloaded and installed the KitaroDB SDK for Visual Studio. You can find the instructions here. Then, open a project (or create a new one), and reference the KitaroDB SDK for Windows 8 in your project and in your source code. You’ll find KitaroDB classes and methods in the KitaroDB namespace.

Working with an ASync Data Store

Create or open a key/value pair data store in the application’s “LocalStore”

var theDatabase = await DB.CreateAsync(PathToDirectory + "\\MyKitaroDB.ism");

Create a new key/value pair data store with a maximum size limit of 2 GB

var theDatabase = await DB.CreateAsync(PathToDirectory + "\\MyKitaroDB.ism", DBCreateFlags.Supersede, 2000);

Insert a string value with a string key

await theDatabase.InsertAsync("theKey", "theValue");

Retrieve a string value using a string key

var stringData = await theDatabase.GetAsync("theKey");

Delete a value with a string key

await theDatabase.DeleteAsync("theKey");

Onward

And now, you’ve quickly learned enough to become dangerous. You can learn more about other features (for instance, did you know that KitaroDB also supports a multi-key index?) by reviewing theĀ documentation.