Skip to content

Instantly share code, notes, and snippets.

@barcharcraz
Created June 15, 2016 00:53
Show Gist options
  • Save barcharcraz/eea2c887787b9843e8f4902559c82509 to your computer and use it in GitHub Desktop.
Save barcharcraz/eea2c887787b9843e8f4902559c82509 to your computer and use it in GitHub Desktop.
stored:
type Scene = select(filename: string, filedata: seq[uint8]) `from` scene_data
var db: PSqlite3
discard open(paramStr(1), db)
var testScenes = db.load(Scene)
for s in testScenes: echo s.filename
var testScene = testScenes[0]
testScene.filename = "wow, such magic"
db.store([testScene])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment