Git Product home page Git Product logo

batiodb's Introduction

a persistence no-sql(kv) db,based on rust

batioDB is a a persistence no-sql db being developed.

if you are interested in this project, you can contact me.

mail: [email protected]

QuickStart

step1: clone this respositry in your terminal

git clone https://github.com/einQimiaozi/batioDB.git

step2: run server

cd batioDB
cargo run

baby turn it on!
bind: yourIpAddress:Port
db in: test.data

You can modify config.yaml file configures your server address and port.

The default address is 127.0.0.1 and the default port is 8765.

step3: run client

Open another terminal

cd batioDB/batioDB_client
cargo run

connection: PollEvented {
    io: Some(
        TcpStream {
            addr: clientIpAddress:clientPort,
            peer: serverIpAddress:serverPort,
            fd: yourFD,
        },
    ),
}
baby turn it on!!!

Similarly, you can modify the address and port of the server that the current client wants to connect to in client_config.yaml

step4: turn it on!!!

Batiodb supports four kinds of instructions:

set [key] [value]

set name Qimiaozi            
value: "success"

get [key]

get name
value: "Qimiaozi"

update [key] [value]

update name einQimiaozi
value: "success"

delete [key]

delete name
value: "success"

If you enter an invalid instruction

set age 
value: "command invalid"

finally,Enter ctrl+z to close the client

batiodb's People

Contributors

einqimiaozi avatar

Stargazers

片 avatar wtsclwq avatar Sharker avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.