一個內存中的JavaScript數據庫:TrollDB
TrollDB是一個優先考慮性能高于一切的內存的JavaScript數據庫。它極快,你不會找到一個更快的內存的JavaScript數據庫了,因此停止尋找。就用這個好了。
基本用法
First require the trolldb script:
<script type="text/javascript" src="trolldb.js"></script>
Insert
You can insert any form of structured data you like:
db.insert({"balance": 12345});
TrollDB will optimize this insert for performance.
Query
You can query for data with pattern matching.
db.query({"balance": undefined});
TrollDB will optimize this query for performance.
Update
You can update data with pattern matching.
db.update({"balance": undefined}, {"balance": 54321});
TrollDB will optimize this update for performance.
Delete
You can delete data with pattern matching.
db.delete({"balance": undefined});
TrollDB will optimize this delete for performance.
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!