-
Notifications
You must be signed in to change notification settings - Fork 0
/
.lein-repl-history
150 lines (150 loc) · 9.67 KB
/
.lein-repl-history
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
(type "hi")
(type 2)
(type (2))
(type ())
(type (1 2 3 4))
(type ())
(type '())
(type [])
(type (vec))
(type (vec 0))
(require '[clojure.core/java.jdbc :as sql])
(def h2-spec {:classname "org.h2.Driver"
:subprotocol "h2:file"
:subname "./resources/db/rest-service"
:user ""
:password ""})
(sql/with-db-connection [db-con h2-spec]
(sql/do-db-commands h2-spec
(sql/create-table-ddl :courses
[[:id "bigint primary key auto_increment"]
[:title "varchar(255)"]
[:description "varchar(4096)"]]))
(sql/insert-multi! db-con h2-spec
[{:title "Intro to Clojure" :description "Clojure is a fun Lisp dialect compatible with multiple software environments."}
{:title "Intro to Python" :description "Python is a popular, general purpose language that has grown in use in data science."}
{:title "Software Project Management" :description "Missed requirements are a disease. Meet the cure."}
{:title "UI Development with Vue.js" :description "Build great UIs with a MVVM tool that gets out of your way to let you get things done."}
{:title "Getting Started with Docker" :description "Learn how to compartmentalize and containerize applications in Docker."}
{:title "Setting up a LAMP Server" :description "An old, common, and reliable stack, learn how to build a tech stack that'll take you places."}]))
(require '[clojure.java.jdbc :as sql])
(def h2-spec {:classname "org.h2.Driver"
:subprotocol "h2:file"
:subname "./resources/db/rest-service"
:user ""
:password ""})
(sql/with-db-connection [db-con h2-spec]
(sql/do-db-commands h2-spec
(sql/create-table-ddl :courses
[[:id "bigint primary key auto_increment"]
[:title "varchar(255)"]
[:description "varchar(4096)"]]))
(sql/insert-multi! db-con h2-spec
[{:title "Intro to Clojure" :description "Clojure is a fun Lisp dialect compatible with multiple software environments."}
{:title "Intro to Python" :description "Python is a popular, general purpose language that has grown in use in data science."}
{:title "Software Project Management" :description "Missed requirements are a disease. Meet the cure."}
{:title "UI Development with Vue.js" :description "Build great UIs with a MVVM tool that gets out of your way to let you get things done."}
{:title "Getting Started with Docker" :description "Learn how to compartmentalize and containerize applications in Docker."}
{:title "Setting up a LAMP Server" :description "An old, common, and reliable stack, learn how to build a tech stack that'll take you places."}]))
(sql/with-db-connection [db-con h2-spec]
(sql/db-do-commands h2-spec
(sql/create-table-ddl :courses
[[:id "bigint primary key auto_increment"]
[:title "varchar(255)"]
[:description "varchar(4096)"]]))
(sql/insert-multi! db-con h2-spec
[{:title "Intro to Clojure" :description "Clojure is a fun Lisp dialect compatible with multiple software environments."}
{:title "Intro to Python" :description "Python is a popular, general purpose language that has grown in use in data science."}
{:title "Software Project Management" :description "Missed requirements are a disease. Meet the cure."}
{:title "UI Development with Vue.js" :description "Build great UIs with a MVVM tool that gets out of your way to let you get things done."}
{:title "Getting Started with Docker" :description "Learn how to compartmentalize and containerize applications in Docker."}
{:title "Setting up a LAMP Server" :description "An old, common, and reliable stack, learn how to build a tech stack that'll take you places."}]))
(sql/with-db-connection [db-con h2-spec]
(sql/db-do-commands h2-spec
(sql/create-table-ddl :courses
[[:id "bigint primary key auto_increment"]
[:title "varchar(255)"]
[:description "varchar(4096)"]]))
(sql/insert-multi! db-con h2-spec
[{:title "Intro to Clojure" :description "Clojure is a fun Lisp dialect compatible with multiple software environments."}
{:title "Intro to Python" :description "Python is a popular, general purpose language that has grown in use in data science."}
{:title "Software Project Management" :description "Missed requirements are a disease. Meet the cure."}
{:title "UI Development with Vue.js" :description "Build great UIs with a MVVM tool that gets out of your way to let you get things done."}
{:title "Getting Started with Docker" :description "Learn how to compartmentalize and containerize applications in Docker."}
{:title "Setting up a LAMP Server" :description "An old, common, and reliable stack, learn how to build a tech stack that'll take you places."}]))
(quit)
(sql/with-db-connection [db-con h2-spec]
(sql/db-do-commands h2-spec
(sql/create-table-ddl :courses
[[:id "bigint primary key auto_increment"]
[:title "varchar(255)"]
[:description "varchar(4096)"]]))
(sql/insert-multi! db-con h2-spec
[{:title "Intro to Clojure" :description "Clojure is a fun Lisp dialect compatible with multiple software environments."}
{:title "Intro to Python" :description "Python is a popular, general purpose language that has grown in use in data science."}
{:title "Software Project Management" :description "Missed requirements are a disease. Meet the cure."}
{:title "UI Development with Vue.js" :description "Build great UIs with a MVVM tool that gets out of your way to let you get things done."}
{:title "Getting Started with Docker" :description "Learn how to compartmentalize and containerize applications in Docker."}
{:title "Setting up a LAMP Server" :description "An old, common, and reliable stack, learn how to build a tech stack that'll take you places."}]))
(require '[clojure.java.jdbc :as sql])
(def h2-spec {:classname "org.h2.Driver"
:subprotocol "h2:file"
:subname "./resources/db/rest-service"
:user ""
:password ""})
(sql/with-db-connection [db-con h2-spec]
(sql/db-do-commands h2-spec
(sql/create-table-ddl :courses
[[:id "bigint primary key auto_increment"]
[:title "varchar(255)"]
[:description "varchar(4096)"]]))
(sql/insert-multi! db-con h2-spec
[{:title "Intro to Clojure" :description "Clojure is a fun Lisp dialect compatible with multiple software environments."}
{:title "Intro to Python" :description "Python is a popular, general purpose language that has grown in use in data science."}
{:title "Software Project Management" :description "Missed requirements are a disease. Meet the cure."}
{:title "UI Development with Vue.js" :description "Build great UIs with a MVVM tool that gets out of your way to let you get things done."}
{:title "Getting Started with Docker" :description "Learn how to compartmentalize and containerize applications in Docker."}
{:title "Setting up a LAMP Server" :description "An old, common, and reliable stack, learn how to build a tech stack that'll take you places."}]))
(sql/with-db-connection [db-con h2-spec]
(sql/insert-multi! db-con h2-spec :courses
[{:title "Intro to Clojure" :description "Clojure is a fun Lisp dialect compatible with multiple software environments."}
{:title "Intro to Python" :description "Python is a popular, general purpose language that has grown in use in data science."}
{:title "Software Project Management" :description "Missed requirements are a disease. Meet the cure."}
{:title "UI Development with Vue.js" :description "Build great UIs with a MVVM tool that gets out of your way to let you get things done."}
{:title "Getting Started with Docker" :description "Learn how to compartmentalize and containerize applications in Docker."}
{:title "Setting up a LAMP Server" :description "An old, common, and reliable stack, learn how to build a tech stack that'll take you places."}]))
(sql/with-db-connection [db-con h2-spec]
(sql/insert-multi! db-con :courses
[{:title "Intro to Clojure" :description "Clojure is a fun Lisp dialect compatible with multiple software environments."}
{:title "Intro to Python" :description "Python is a popular, general purpose language that has grown in use in data science."}
{:title "Software Project Management" :description "Missed requirements are a disease. Meet the cure."}
{:title "UI Development with Vue.js" :description "Build great UIs with a MVVM tool that gets out of your way to let you get things done."}
{:title "Getting Started with Docker" :description "Learn how to compartmentalize and containerize applications in Docker."}
{:title "Setting up a LAMP Server" :description "An old, common, and reliable stack, learn how to build a tech stack that'll take you places."}]))
(type list)
(type vec)
(type true)
(go)
(quit(
)
(quit)
(type {})
(type array-map)
(type hash-map)
(require '[clojure.java.jdbc :as jdbc]
[clojure.string :as str])
(require '[clojure.java.jdbc :as jdbc]
[clojure.str :as str])
(require '[clojure.java.jdbc :as jdbc]
[clojure.core.string :as str])
(require '[clojure.java.jdbc :as jdbc]
'[clojure.core.string :as str])
(require '[clojure.java.jdbc :as jdbc]
'[clojure.string :as str])
(type '[])
(type [])
'[clojure.string :only (join)])
(require '[clojure.string :only (join)])
(require '[clojure.string :only [join]])
(require '[clojure.string :only [join split]])
(require '[clojure.string :refer [join split]])