Categorygithub.com/d-ylee/dbs-NoSQL-test
modulepackage
0.0.0-20221130170521-b06af31095c2
Repository: https://github.com/d-ylee/dbs-nosql-test.git
Documentation: pkg.go.dev

# README

dbs-NoSQL-test

DBS testing with using NoSQL databases

Dennis Lee

[email protected]

Requirements

  • Local MongoDB server with port 27017
    • docker-compose.yml can start a MongoDB server accessible via localhost at port 27017
    • MongoDB can also be started by running docker run -it --network dbs-network --name dbs-mongo -p 27017:27017 -d mongo:6.0.2-focal
    • During testing, these are hard coded into the server
  • curl
  • Dataset
    • fileLumiData.json was created from a database dump of the FileLumi table, which was then converted to JSON

Trying out the code

  • go get the dependencies
  • go run main.go to start the server
  • Using upload_fls.sh upload fileLumiData.json
    • This uses curl

# Functions

FileLumiHandler handles bulk file lumi insert into MongoDB.

# Variables

No description provided by the author

# Structs

FileLumi represents file lumi structure used in File structure of BulkBlocks structure.