On Feb 19, 5:06 pm, Brenton <
bashw...@gmail.com> wrote:
> Hi Jeff,
>
> The files "integrated.clj" and "disintegrated.clj" are from sandbar
> 0.4.0-SNAPSHOT and will not work with a previous version. These files
> are being used as examples to help develop a new version of forms
> based on protocols. The final result will not be much different from
> what is in version 0.3.3 but will be more flexible.
>
> To best experiment with sandbar at this point, I would use version
> 0.3.3 which has examples included. Once I am finished with the new
> forms I will add some examples to sandbar-examples to show how to use
> them. All of the documentation in the sandbar wiki currently refers to
> version 0.3.3.
>
> If this doesn't help, please let me know.
>
> Brenton
Thanks Brenton, trying 0.3.3 now.
With some adjustment to the instructions at
https://github.com/brentonashworth/sandbar/wiki/Examples, it seems the
user must add user-config/get-connection in sandbar.dev.user-tables-
mysql (src/sandbar/dev/user_tables_mysql.clj) for successful startup.
Can you provide any information on the expected form or function?
Ran mysql config, OK:
$ mysql -u root -p
$ CREATE DATABASE idea_db;
$ GRANT ALL PRIVILEGES ON idea_db.* TO idea_user@localhost IDENTIFIED
BY '123456789';
$ exit
Change: checkout tag 0.3.3, branch stable doesn't exist in upstream
sandbar git.
$ git checkout -b stable 0.3.3
Change: project.clj:
$ git diff
diff --git a/project.clj b/project.clj
index 414d6ad..b2c95cc 100644
--- a/project.clj
+++ b/project.clj
@@ -17,9 +17,10 @@
[deview/lein-deview "1.2.0-SNAPSHOT"]
[lein-difftest "1.3.1"]
[enlive "1.0.0-SNAPSHOT"]
- [radagast "1.0.0"]]
+ [radagast "1.0.0"]
+ [mysql/mysql-connector-java "5.1.6"]]
:hooks [leiningen.hooks.difftest]
- :namespaces [sandbar.dev.tables]
+ :aot [sandbar.dev.tables]
:deview-server 9001
:deview-loc-ext #{"clj" "js" "css" "xml"}
:radagast/ns-whitelist #"^sandbar.*")
$ lein repl
REPL started; server listening on localhost:1940.
user=> (load-file "src/testdrive.clj")
Exception in thread "Thread-1" java.lang.RuntimeException:
java.lang.Exception: No such var: user-config/get-connection
(testdrive.clj:16)
at clojure.lang.AFn.run(AFn.java:28)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.Exception: No such var:
user-config/get-connection (testdrive.clj:16)