Skip to content

Instantly share code, notes, and snippets.

@erez-rabih
Created March 19, 2024 08:23
Show Gist options
  • Save erez-rabih/88f9ad2913272b362c57d2d08cb0d855 to your computer and use it in GitHub Desktop.
Save erez-rabih/88f9ad2913272b362c57d2d08cb0d855 to your computer and use it in GitHub Desktop.
func insertOne(params):
tr = db.OpenTransaction()
resultRow = tr.Exec("select .... ")
if resultRow == nil
resultRow = tr.Exec("insert into .... ")
tr.Close()
return resultRow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment