al Message -
From: "Sean Corfield"
To:
Sent: Monday, January 09, 2012 9:06 PM
Subject: Re: mysql and fruit tables
On Mon, Jan 9, 2012 at 3:43 PM, wrote:
I run lein repl
I enter statement"(load "/fruit/core")
You can just do:
(require 'fruit.core)
I ente
statement not used?? What is its replacement/
Thanks
- Original Message -
From:
To:
Sent: Monday, January 09, 2012 4:43 PM
Subject: Re: mysql and fruit tables
I am running Win Vista.
I create a project with Lein new fruit in C:\projects
I cd to fruit in C:/projects/fruit
I copy code
On Mon, Jan 9, 2012 at 3:43 PM, wrote:
> I run lein repl
> I enter statement"(load "/fruit/core")
You can just do:
(require 'fruit.core)
> I enter statement "(fruit.core/create-fruit)
> I get error message
> ==
>
> user=> (fruit.core/insert-rows-fruit)
> Exception n
["Pear" "bruised"])
(prn "is-rollback-only" (sql/is-rollback-only))
(sql/with-query-results res
["SELECT * FROM fruit"]
(doseq [rec res]
(println rec
(prn)
(sql/with-query-results res
["SELECT * FROM fruit"]
On Sun, Jan 8, 2012 at 8:26 PM, jayvandal wrote:
> I have been able to access tables in mysql, but not able to add
> records. I look at the examples fo "fruit so I created a lein named
> fruitI made th project file as the mysql project file. I copied the
> database instructions as in mysql. I add
I have been able to access tables in mysql, but not able to add
records. I look at the examples fo "fruit so I created a lein named
fruitI made th project file as the mysql project file. I copied the
database instructions as in mysql. I added all of the statements for
the "fruit" example but I can
I have been able to access tables in mysql, but not able to add
records. I look at the examples fo "fruit so I created a lein named
fruitI made th project file as the mysql project file. I copied the
database instructions as in mysql. I added all of the statements for
the "fruit" example but I can