Skip to content

Commit 7bfffbe

Browse files
author
Olivier Bonnaure
committed
feat: transform all db drivers to a proper class
1 parent 43504b7 commit 7bfffbe

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.lua/crate.lua

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ function Crate.new(db_config)
1616
return Crate
1717
end
1818

19-
20-
local function sql(sql, bindVars)
19+
function Crate:sql(sql, bindVars)
2120
local ok, headers, body = Fetch(
2221
self._db_config["url"] .. "/_sql",
2322
{

0 commit comments

Comments
 (0)