@rip-lang/db 1.1.5 → 1.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/db.rip +2 -3
- package/package.json +1 -1
package/db.rip
CHANGED
|
@@ -125,9 +125,8 @@ isSelectQuery = (sql) ->
|
|
|
125
125
|
|
|
126
126
|
# Log SQL query (truncated if long)
|
|
127
127
|
logSQL = (sql) ->
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
console.log "SQL: #{preview}"
|
|
128
|
+
query = sql.replace(/\s+/g, ' ').trim()
|
|
129
|
+
console.log "SQL: #{query}"
|
|
131
130
|
|
|
132
131
|
# Execute SQL and return result (uses persistent connection)
|
|
133
132
|
executeSQL = (sql, params = []) ->
|