Skip to content

Commit

Permalink
Implementing the Session:delete_database method
Browse files Browse the repository at this point in the history
  • Loading branch information
clarete committed Sep 8, 2010
1 parent 7d9a1c5 commit 89b8926
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions couchdb.lua
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,8 @@ function Session:create_database(name)
return _do_request(self.uri .. "/" .. name, "PUT")
end

function Session:delete_database(name)
return _do_request(self.uri .. "/" .. name, "DELETE")
end

return _M

0 comments on commit 89b8926

Please sign in to comment.