The short version is you haven't connected to a database[0], and
that's what causing the problems.

[0] ie on-disk db, eval'ing (connected-databases) give you nil

Ok, this is what I did.

Start lisp, asdf load clsql, inspect (M-.) def-view-class (which is a
macro around defclass).

Evaluate the file clsql-tutorial.lisp file (from clsql/examples).

At the repl evaluate:

(in-package 'clsql-user)
(make-instance 'employee)

Inspect that (C-c C-v i) -- looks fine.

Evaluate:

CLSQL-USER> (create-view-from-class 'employee)

See error:

There is no applicable method for the generic function
  #<STANDARD-GENERIC-FUNCTION DATABASE-TYPE (1)>
when called with arguments
  (NIL).
   [Condition of type SIMPLE-ERROR]

Somewhere in the clsql docs it says that before running the tutorial
one has to set up the database. Since I did not do that, and since M-.
on create-view-from-class indicates a *default-database* parameter
which is not set, I am going to say that's your problem.

-- 
You received this message because you are subscribed to the Google Groups 
"weblocks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/weblocks?hl=en.

Reply via email to