Introduction Installation Projects Tables Inserts Searches Updates Deletes Production Installation Conclusion

Updates - Flaarum Tutorials

Updating a row in Flaarum takes a search statement as detailed in the searches tutorial and a map[string]interface{} which would contain the updated values. One can update more than one row at a time

Sample Code

cl := flaarum.NewClient("", "not-yet-ready", "first_proj")
toUpdate := map[string]interface{} {
	"userid": 32,
	"roleid": 14,

err := cl.UpdateRowsAny(`
table: user_roles
	userid = 32
`, toUpdate)

if err != nil {
< Previous Next >