polodb-5.1.4 is not a library.
This is the main entry point for the PoloDB server. This file includes a command-line interface for starting the server.
You can start the server by running cargo run -- serve --path /path/to/db
.
The server will listen on localhost:27017
by default.
You can also specify the host and port by passing --host
and --port
arguments.
For example: cargo run -- serve --host 0.0.0.0 --port 8080 --path /path/to/db
.
Connect
You can connect to the server using the mongo
shell.
And the official rust driver is also supported.
You can check the official driver for more information.