CD
Size: a a a
CD
ИФ
(when (= node (first (db/primaries test)))
- (cl/with-conn-failure-retry conn
- (info (str "Creating table " table-name))
- (j/execute! conn [(str "CREATE TABLE IF NOT EXISTS " table-name
- "(id INT NOT NULL PRIMARY KEY,
- balance INT NOT NULL)")])
- (doseq [a (:accounts test)]
- (info "Populating account")
- (sql/insert! conn table-name {:id a
- :balance (if (= a (first (:accounts test)))
- (:total-amount test)
- 0)}))))
+ (info (str "Creating table " table-name))
+ (j/execute! conn [(str "CREATE TABLE IF NOT EXISTS " table-name
+ "(id INT NOT NULL PRIMARY KEY,
+ balance INT NOT NULL)")])
+ (doseq [a (:accounts test)]
+ (info "Populating account")
+ (sql/insert! conn table-name {:id a
+ :balance (if (= a (first (:accounts test)))
+ (:total-amount test)
+ 0)}))))
(assoc this :conn conn :node node))))
ИФ
E
ИФ
(when (= node (first (db/primaries test)))
- (cl/with-conn-failure-retry conn
- (info (str "Creating table " table-name))
- (j/execute! conn [(str "CREATE TABLE IF NOT EXISTS " table-name
- "(id INT NOT NULL PRIMARY KEY,
- balance INT NOT NULL)")])
- (doseq [a (:accounts test)]
- (info "Populating account")
- (sql/insert! conn table-name {:id a
- :balance (if (= a (first (:accounts test)))
- (:total-amount test)
- 0)}))))
+ (info (str "Creating table " table-name))
+ (j/execute! conn [(str "CREATE TABLE IF NOT EXISTS " table-name
+ "(id INT NOT NULL PRIMARY KEY,
+ balance INT NOT NULL)")])
+ (doseq [a (:accounts test)]
+ (info "Populating account")
+ (sql/insert! conn table-name {:id a
+ :balance (if (= a (first (:accounts test)))
+ (:total-amount test)
+ 0)}))))
(assoc this :conn conn :node node))))
RN
RN
RN
ИФ
RN
RN
RN
ИФ
a
ИФ
ИФ
ИФ
a
ИФ
ИФ