Crates.io | alex-db-client |
lib.rs | alex-db-client |
version | 0.1.0 |
source | src |
created_at | 2023-02-13 21:29:38.982649 |
updated_at | 2023-02-13 21:29:38.982649 |
description | AlexDB client. |
homepage | https://github.com/idiomatic-rust-com/alex-db |
repository | https://github.com/idiomatic-rust-com/alex-db |
max_upload_size | |
id | 784338 |
size | 80,182 |
The command-line application that facilitates communication with the database server.
cd alex-db-client/
cargo run
and you will receive the result
Welcome to AlexDB client
AlexDB〉
Please substitute '63545360-301e-482f-93fc-84e6d11d8aee' with your 'initial API key' in this instance.
Execute the command
connect http://0.0.0.0:10240 63545360-301e-482f-93fc-84e6d11d8aee
and you will receive the result
Connect http://0.0.0.0:10240
Execute the command
create test100-key test100-value
and you will receive the result
Value created
Key: test100-key
Value: String("test100-value")
Execute the command
create test101-key true
list
and you will receive the result
Values list
1) Key: test100-key
Value: String("test100-value")
2) Key: test101-key
Value: Boolean(true)
Execute the command
create test102-key 10
read test102-key
and you will receive the result
Value readed
Key: test102-key
Value: Integer(10)
Execute the command
create test103-key test103-value-a::test103-value-b
update test103-key test103-value-a::test103-value-c
and you will receive the result
Value updated
Key: test103-key
Value: Array([String("test103-value-a"), String("test103-value-c")])
Execute the command
create test104-key test104-value::true::10
delete test104-key
and you will receive the result
Value deleted
Execute the command
create test105-key test105-value-1::test105-value-2
append test105-key test105-value-appended
and you will receive the result
Value appended
Key: test105-key
Value: Array([String("test105-value-1"), String("test105-value-2"), String("test105-value-appended")])
Execute the command
create test106-key test106-value-1::test106-value-2
prepend test106-key test106-value-prepended
and you will receive the result
Value prepended
Key: test106-key
Value: Array([String("test106-value-prepended"), String("test106-value-1"), String("test106-value-2")])
Execute the command
create test107-key 1000
increment test107-key
increment test107-key 10
and you will receive the result
Value incremented
Key: test107-key
Value: Integer(1011)
Execute the command
create test108-key 5000
decrement test108-key
decrement test108-key 10
and you will receive the result
Value decremented
Key: test108-key
Value: Integer(4989)
Execute the command
create test109-key test109-value1::test109-value2::test109-value3::true::false::true::10::11::12
pop_front test109-key
pop_front test109-key 3
and you will receive the result
Value poped front
1) Value: String("test109-value2")
2) Value: String("test109-value3")
3) Value: Boolean(true)
Execute the command
create test110-key test110-value1::test110-value2::test110-value3::true::false::true::10::11::12
pop_back test110-key
pop_back test110-key 3
and you will receive the result
Value poped back
1) Value: Integer(11)
2) Value: Integer(10)
3) Value: Boolean(true)