差分

ナビゲーションに移動 検索に移動

DBreeze

729 バイト追加, 2018年3月8日 (木) 03:03
編集の要約なし
* Selectで取得(KVSなので戻ってくるのは1行)
* Commitでバッチ書き込み
 
== 使い方 ==
<source>
using System;
using DBreeze;
 
class MainClass
{
public static void Main(string[] args)
{
var engine = new DBreezeEngine("db");
 
using (var transaction = engine.GetTransaction())
{
// KVSなのでval2で上書き
transaction.Insert("table", "key", "val1");
transaction.Insert("table", "key", "val2");
 
// commit前のも取れる
var row = transaction.Select<string,string>("table","key");
Console.WriteLine(row.Value);
 
// バッチ書き込み
transaction.Commit();
}
}
}
</source>
== 外部リンク ==
* https://github.com/hhblaze/DBreeze
匿名利用者

案内メニュー