loveddb

command module
v0.0.0-...-d0f20b0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 12, 2020 License: MIT Imports: 5 Imported by: 0

README

loveddb

alt text

Why a new database.

  1. Partial Schemaless database (uniqueness of field(s) and table relationships need to be explicitly created).

  2. Supports its own query language.

  3. Every data stored in this database is automatically indexed unless it is large.

  4. Table Expansion (a more comfortable form of joins)

Regular Features

  1. Query Cache that can be turned "on" or "off". It improves the speed but comes at a cost of needing more RAM.

Technologies Used.

  • Golang
  • Ubuntu
  • HTTP
  • JSON

Data and Query Considerations

Every data is representable as string. This database only supports the string data type.

List Data Type.

It could be stored as comma separated like "James,Jamer,Jaker" and be splitted from a program to get it in list form.

No Date Functions

Dates could be splitted to enable more query options. Such as searching by month or year.

JOIN Queries

Join queries here are in the form of table expansion. Check the sample in the documentation for details.

Building the Program

  1. Clone this program and switch to the imported directory.

  2. Run go run build.go to compile the program.

On Launching

The main database process is the ldb_storer program.

By default it would launch without asking for access keys.

Production
  1. Set the LDB_PRODUCTION environment variable to true.

  2. Set the LDB_DATA_PATH environment variable to the path you want your data stored. This is to support mounted disks.

  3. Run the ldb_mkpass program to get your key. This key is to be included in every call to the database.

  4. Then you can now launch the database by running the ldb_storer program.

Documentation of Loveddb Library

Can be found here

Configuration Options

The configuration options are all set as environment variables.

  1. LDB_DATA_PATH: set to the directory that you want to save the database files

  2. LDB_DEBUG: prints out more details after an error.

  3. LDB_ENABLE_CACHE: set to either "true" or "false".

  4. LDB_PORT: set to a number. Used to change the port

  5. LDB_PRODUCTION: set to either "true" or "false". Enables the use of access codes (key string)

License

Released with the MIT License

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package ldblib provides programming interface to a lovedb instance.
Package ldblib provides programming interface to a lovedb instance.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL