Skip to content
This repository was archived by the owner on Apr 17, 2021. It is now read-only.

Commit de8d48e

Browse files
authored
Merge pull request #18 from shopsmart/boot
Reboot
2 parents 1889588 + 15ecf20 commit de8d48e

File tree

5 files changed

+47
-16
lines changed

5 files changed

+47
-16
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ pom.xml.asc
1010
.hgignore
1111
.hg/
1212
.nightlight.edn
13+
.nrepl-history

README.md

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,15 @@
11
# clj-infrastructure
22

3+
Database utilities for Brad's Deals / Shopsmart projects. In the future this will include additional
4+
5+
[![Clojars Project](https://img.shields.io/clojars/v/bradsdeals/clj-infrastructure.svg)](https://clojars.org/bradsdeals/clj-infrastructure)
6+
7+
38
* Relational databases
49
* Use clj-foundation templates to build SQL
510
* Configuration assistance
611
* Interact with a PreparedStatement as a regular Clojure function; template variables not substituted before (prepare-statement) become bind variable parameters to the Clojure function wrapping the PreparedStatement.
712
* defstatement / defquery
813

9-
* AWS (future)
10-
* Get the current user's access keys
11-
* Utilities to interact with EC2 instances
12-
* s3 up/download
13-
14-
## Coordinates
15-
16-
```clojure
17-
:user {:repositories [["jitpack" "https://jitpack.io"]]}
18-
```
19-
20-
* GroupId: com.github.shopsmart
21-
* ArtifactId: clj-foundation
22-
* Version: [![Release](http://jitpack.io/v/com.github.shopsmart/clj-infrastructure.svg)](https://jitpack.io/#shopsmart/clj-infrastructure)
23-
2414

15+
Deployment/signing keys are under "clojars" in the usual place. See https://gist.github.com/chrisroos/1205934 under "method 2" to import into your account.

boot.properties

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#http://boot-clj.com
2+
#Tue Nov 22 12:33:23 CST 2016
3+
BOOT_CLOJURE_NAME=org.clojure/clojure
4+
BOOT_CLOJURE_VERSION=1.8.0
5+
BOOT_VERSION=2.6.0

build.boot

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
(def task-options
2+
{:project 'bradsdeals/clj-infrastructure
3+
:version "0.1.17"
4+
:project-name "clj-infrastructure"
5+
:project-openness :open-source
6+
7+
:description "Infrastructure helpers for AWS, database, etc."
8+
:scm-url "https://github.com/shopsmart/clj-infrastructure"
9+
10+
:test-sources "test"
11+
:test-resources nil})
12+
13+
14+
(set-env! :resource-paths #{"resources"}
15+
:source-paths #{"src"}
16+
17+
:dependencies '[[org.clojure/clojure "1.8.0"]
18+
[clojure-future-spec "1.9.0-alpha14"]
19+
20+
[org.clojure/tools.logging "0.3.1"]
21+
[prismatic/schema "1.1.1"]
22+
[org.clojure/java.jdbc "0.6.2-alpha2"]
23+
[bradsdeals/clj-foundation "LATEST"]
24+
25+
; Testing dependencies
26+
[com.h2database/h2 "1.4.192" :scope "test"]
27+
[postgresql/postgresql "9.3-1102.jdbc41" :scope "test"]
28+
29+
; Boot tasks
30+
[bradsdeals/clj-boot "LATEST"]])
31+
32+
(require '[clj-boot.core :refer :all])
33+
34+
(set-task-options! task-options)

test/clj_infrastructure/db_test.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -644,4 +644,4 @@
644644
(is (not (empty? (jdbc/query conn2 [(q "select * from ${test-table}")]))))))))))))
645645

646646

647-
(run-tests)
647+
#_(run-tests)

0 commit comments

Comments
 (0)