mirror of
https://github.com/radareorg/sdb.git
synced 2026-11-08 17:44:10 -10:00
19 lines
256 B
Python
Executable File
19 lines
256 B
Python
Executable File
#!/usr/bin/env python3
|
|
|
|
import r2sdb
|
|
|
|
s = r2sdb.new()
|
|
s.open("test.sdb")
|
|
s.set("foo", "bar")
|
|
a = s.get("foo")
|
|
print(a)
|
|
a = s.get("bar")
|
|
print(a)
|
|
s.set("world", "loops")
|
|
print(s.query("*"))
|
|
|
|
print(s.add("afoo", "bar"))
|
|
print(s.add("afoo", "bar"))
|
|
s.sync()
|
|
|