Created
March 21, 2014 10:19
-
-
Save rofr/9683255 to your computer and use it in GitHub Desktop.
Output from first origodb scriptcs experiment
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
$ 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