Skip to content

Commit

Permalink
* Added a README file
Browse files Browse the repository at this point in the history
* Started defining classes for CLOS API
* Corrected library loading problem with #:tokyocabinet-sys
  • Loading branch information
unya committed Mar 9, 2009
1 parent 6a54512 commit 53ae888
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 2 deletions.
23 changes: 23 additions & 0 deletions README
@@ -0,0 +1,23 @@
* Intro

TokyoCabinet is a set of database + network server + reverse index
(for full-text search) libraries, implemented in C and built for
speed. They represent non-relational wing of databases, though
TokyoCabinet does have table-based storage with queries on tables (in
a way, that mirrors basically what 90% of people use MySQL for ;-) )

cl-tc is a set of SWIG-generated CFFI bindings for TokyoCabinet
library and in future, TokyoTyrant and TokyoDystopia. Currently
available bindings are 1-to-1 mapping of TokyoCabinet’s C API,
available in package tokyocabinet-sys. They will be used to make a
nice, CLOS-y API which will reside in package tokyocabinet, however,
it’s still not written :)

* How to use

Just symlink ASDF definition file into your registry (or load it or
add it manually to registry, your pick) and use asdf to load it.

Currently only the C API is available, through direct bindings in
#:TOKYOCABINET-SYS package. Proper CL api coming soon.

3 changes: 3 additions & 0 deletions tc-db.lisp
@@ -1,3 +1,6 @@
(in-package :tokyocabinet)

(defclass database ()
((connection :accessor get-connection :initarg :connection)
(db-type :accessor get-db-type :initarg :db-type)))

6 changes: 4 additions & 2 deletions tokyocabinet.lisp
@@ -1,11 +1,13 @@
(in-package :tokyocabinet-sys)
(define-foreign-library tokyocabinet
(:unix (:or "libtokyocabinet.so.7" "libtokyocabinet.so"))
(t (:default "libtokyocabinet")))
(use-foreign-library tokyocabinet)
;;; This file was automatically generated by SWIG (http://www.swig.org).
;;; Version 1.3.38
;;;
;;; Do not make changes to this file unless you know what you are doing--modify
;;; the SWIG interface file instead.


;;;SWIG wrapper code starts here

(cl:defmacro defanonenum (&body enums)
Expand Down

0 comments on commit 53ae888

Please sign in to comment.