Skip to content

Commit

Permalink
Delete* methods were missing the opts parameter (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
ItalyPaleAle authored and a8m committed Aug 31, 2019
1 parent f1cda92 commit e4fdf4d
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions documentdb.go
Original file line number Diff line number Diff line change
Expand Up @@ -287,28 +287,28 @@ func (c *DocumentDB) UpsertDocument(coll string, doc interface{}, opts ...CallOp

// TODO: DRY, but the sdk want that[mm.. maybe just client.Delete(self_link)]
// Delete database
func (c *DocumentDB) DeleteDatabase(link string) (*Response, error) {
return c.client.Delete(link)
func (c *DocumentDB) DeleteDatabase(link string, opts ...CallOption) (*Response, error) {
return c.client.Delete(link, opts...)
}

// Delete collection
func (c *DocumentDB) DeleteCollection(link string) (*Response, error) {
return c.client.Delete(link)
func (c *DocumentDB) DeleteCollection(link string, opts ...CallOption) (*Response, error) {
return c.client.Delete(link, opts...)
}

// Delete document
func (c *DocumentDB) DeleteDocument(link string) (*Response, error) {
return c.client.Delete(link)
func (c *DocumentDB) DeleteDocument(link string, opts ...CallOption) (*Response, error) {
return c.client.Delete(link, opts...)
}

// Delete stored procedure
func (c *DocumentDB) DeleteStoredProcedure(link string) (*Response, error) {
return c.client.Delete(link)
func (c *DocumentDB) DeleteStoredProcedure(link string, opts ...CallOption) (*Response, error) {
return c.client.Delete(link, opts...)
}

// Delete user defined function
func (c *DocumentDB) DeleteUserDefinedFunction(link string) (*Response, error) {
return c.client.Delete(link)
func (c *DocumentDB) DeleteUserDefinedFunction(link string, opts ...CallOption) (*Response, error) {
return c.client.Delete(link, opts...)
}

// Replace database
Expand Down

0 comments on commit e4fdf4d

Please sign in to comment.