Skip to content

Instantly share code, notes, and snippets.

@rofr
Created March 21, 2014 10:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rofr/9683255 to your computer and use it in GitHub Desktop.
Save rofr/9683255 to your computer and use it in GitHub Desktop.
Output from first origodb scriptcs experiment
$ scriptcs start.csx -repl
scriptcs (ctrl-c to exit)
INFO: Loading preseeded script: start.csx
> db.Keys();
[
"hello"
]
> Enumerable.Range(1,100).ToList().ForEach(n => db.Put(n.ToString(),n*n));
> db.Keys();
[
"1",
"10",
"100",
"11",
"12",
"13",
"14",
"15",
"16",
"17"
]
> db.Keys(20,10);
[
"27",
"28",
"29",
"3",
"30",
"31",
"32",
"33",
"34",
"35"
]
> db.Delete("34");
> db.Keys(20,10);
[
"27",
"28",
"29",
"3",
"30",
"31",
"32",
"33",
"35",
"36"
]
>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment