Skip to content

Commit

Permalink
Merge pull request #2 from jasalt/patch-2
Browse files Browse the repository at this point in the history
rename keyowrd -> keyword
  • Loading branch information
smeghead authored Nov 13, 2024
2 parents 5780e32 + 8b70886 commit f6d92b0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/statement.phel
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

(defstruct statement [stmt])

(defn- map-key-to-keyowrd [row]
(defn- map-key-to-keyword [row]
(let [row (php-array-to-map row)]
(reduce (fn [acc key]
(put acc (keyword key) (row key)))
Expand All @@ -11,7 +11,7 @@
(defn fetch
"Fetches the next row from a result set"
[statement]
(map-key-to-keyowrd
(map-key-to-keyword
(php/->
(statement :stmt)
(fetch (php/:: \PDO FETCH_ASSOC)))))
Expand All @@ -26,7 +26,7 @@
(defn fetch-all
"Fetches the remaining rows from a result set"
[statement]
(map map-key-to-keyowrd
(map map-key-to-keyword
(php/->
(statement :stmt)
(fetchAll (php/:: \PDO FETCH_ASSOC)))))
Expand Down

0 comments on commit f6d92b0

Please sign in to comment.