Created
June 22, 2018 09:09
-
-
Save kitz99/43d4135b85fe6adc8d23ce5c45c13567 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func deleteRecord(id int64) error { | |
qryString := fmt.Sprintf("DELETE from posts WHERE id = %d", id) | |
fmt.Printf("Query: %v\n", qryString) | |
_, err := roachConnection.Exec(qryString) | |
return err | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment