diff --git a/doc/specification/scaling.md b/doc/specification/scaling.md index bfc16de..922c473 100644 --- a/doc/specification/scaling.md +++ b/doc/specification/scaling.md @@ -22,7 +22,7 @@ Database reads are probably more infrequent. Each client will obviously need to Mobile phones typically can have intermittent network access. The client must be able to buffer a queue of records to be stored, and must not prevent the user from moving on to the next doorstep just because the data from the last visit has not yet been stored. There should probably be some on-screen indication of when there is unsent buffered data. -### Pattern of canvassing +### Pattern of canvassing Canvassing takes place typically between 6:30pm and 9:00pm on a weekday evening. There will be some canvassing outside this period, but not enough to create significant load. Canvassing will be higher on dry nights than on wet ones, and will probably ramp up through the campaign. @@ -40,7 +40,7 @@ This means that the maximum number of transactions per second across Scotland is 700 transactions per second is not a very large number. We should be able to support this level of load on a single server. But what if we can't? -## Spreading the load +## Spreading the load ### Caching and memoizing diff --git a/doc/specification/userspec.md b/doc/specification/userspec.md index 3f494b1..efa9f59 100644 --- a/doc/specification/userspec.md +++ b/doc/specification/userspec.md @@ -1,4 +1,4 @@ -### YouYesYet: User-oriented specification +# YouYesYet: User-oriented specification ## Overview diff --git a/project.clj b/project.clj index 9a06d8c..e248722 100644 --- a/project.clj +++ b/project.clj @@ -55,12 +55,17 @@ [lein-cljsbuild "1.1.4"] [lein-uberwar "0.2.0"] [lein-bower "0.5.1"] - [lein-less "1.7.5"]] + [lein-less "1.7.5"] + [lein-codox "0.10.3"]] :bower-dependencies [[leaflet "0.7.3"]] :cucumber-feature-paths ["test/clj/features"] + :codox {:metadata {:doc "FIXME: write docs"} + :languages [:clojure :clojurescript] + :source-paths ["src/clj" "src/cljc" "src/cljs"]} + :uberwar {:handler youyesyet.handler/app :init youyesyet.handler/init diff --git a/resources/sql/queries.sql b/resources/sql/queries.sql index 4d866db..5309965 100644 --- a/resources/sql/queries.sql +++ b/resources/sql/queries.sql @@ -44,6 +44,8 @@ WHERE id = :id SELECT * FROM addresses WHERE id = :id +-- :name get-addresses-by-postcode + -- :name delete-address! :! :n -- :doc delete a address given the id DELETE FROM addresses