Created
June 15, 2016 00:53
-
-
Save barcharcraz/eea2c887787b9843e8f4902559c82509 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
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