1 variable database. FACEPALM
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
.gitignore
Cargo.lock
Cargo.toml
README.md

README.md

UselessDB

___________________
< Don't use me ever >
-------------------
       \   ^__^
        \  (oo)\_______
           (__)\       )\/\
               ||----w |
               ||     ||

Prepare yourself for the ultimate regret. This is a statically typed single value database.

"Do one thing and do it well."

I have clearly taken this way to seriously.

FAQ

I need more than 1 variable!

Run one version of the DB for each variable you need.

Isn't that a bad idea?

Yes. Don't use this database for anything. If you do, you should be fired.

Stuff you need to know

There's only 1 variable. It's called var. This is extremely limiting and pretty awful. The DB is statically typed, explicitly. So you have to set the type of your variable using type = int. Supported types are int, float, string.

Examle Usage (client is prefixed with > only to show commands)

telnet localhost 6000
> var = 1
type_error
> type = int
ok
> var = 2
ok
> var = 2.0
type_error
> var = 5
ok
> var > 4
true
> var < 10
true
> var >= 5
true