Changeset 33162 in project


Ignore:
Timestamp:
02/06/16 16:51:41 (4 years ago)
Author:
Caolan McMahon
Message:

Update for v3.0.0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/4/leveldb

    r31151 r33162  
    11== leveldb
     2
    23[[toc:]]
    3 Bindings to [[https://code.google.com/p/leveldb/|LevelDB]], a fast and lightweight key/value database library by
    4 Google. Provides an implementation of the [[https://github.com/caolan/chicken-level|level]] egg. Include both eggs to
    5 provide the API used in these examples.
    64
     5=== Description
     6
     7Bindings to [[https://code.google.com/p/leveldb/|LevelDB]], a fast and lightweight key/value database library by Google. Provides an implementation of the [[https://github.com/caolan/chicken-level|level]] egg. Include both eggs to provide the API used in these examples.
    78
    89=== Examples
    910
    1011==== Basic operation
     12
    1113<enscript highlight="scheme">   
    1214(use level leveldb)
     
    2325
    2426==== Batches and ranges
     27
    2528<enscript highlight="scheme">   
    2629(use level leveldb lazy-seq)
     
    4649=== API
    4750
    48 ==== Open and close
    49 <enscript highlight="scheme">   
    50 (open-db loc #!key (create #t) (exists #t))
    51 </enscript>
     51<procedure>(open-db loc #!key (create #t) (exists #t))</procedure>
    5252
    5353Opens database with path {{loc}} and returns a database object. By default,
     
    5858will mean an exception occurs if the database does not exist.
    5959
    60 <enscript highlight="scheme">   
    61 (close-db db)
    62 </enscript>
     60<procedure>(close-db db)</procedure>
    6361
    6462Closes database {{db}}.
    6563
    66 <enscript highlight="scheme">   
    67 (call-with-db loc proc #!key (create #t) (exists #t))
    68 </enscript>
     64<procedure>(call-with-db loc proc #!key (create #t) (exists #t))</procedure>
    6965
    7066Opens database at {{loc}} and calls (proc db). The database will be closed when
    7167proc returns or raises an exception.
     68
     69=== Source code / issues
     70
     71[[https://github.com/caolan/chicken-leveldb]]
     72
     73=== Changelog
     74
     75==== 3.0.1
     76
     77* fixed out of date dependencies in meta file
     78
     79==== 3.0.0
     80
     81* Re-written using the LevelDB C API
     82* All conditions are now of type (exn leveldb)
     83* Uses new level egg interface and added db-get/default support
     84* db-stream now returns key+value combinations as pairs instead of lists
     85  eg, (("key" . "value")) instead of (("key" "value"))
     86* all write operations now return #<unspecified> instead of #t
Note: See TracChangeset for help on using the changeset viewer.