store

package module
v0.0.0-...-b11c152 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2020 License: AGPL-3.0 Imports: 0 Imported by: 0

README

Qlovastore Godoc Go Report Card

Qlovastore is a storage abstraction library for Go. Dealing both with filesystem and database abstraction. qlova.store/fs and qlova.store/db respectively. The database package is still in an experimental state, the filesystem package is incomplete.

File-system Drivers:

  • Amazon S3 (s3)
  • Operating System (os)

Database Drivers:

  • Postgres (postgres)

File-system Example:

package main

import (
	"log"

	"qlova.store/fs/driver/os"
)

func main() {
    //Open a new fs.Root at directory called config which will be created if it doesn't exist.
	configs, err := os.Open("config")
	if err != nil {
		log.Fatalln(err)
	}

    //Set the given file to be equal to the given string.
	if err := configs.File("config.ini").SetString("[INI]\n\ta = 1234\n"); err != nil {
		log.Fatalln(err)
	}
}

License
This work is subject to the terms of the Qlova Public License, Version 2.0. If a copy of the QPL was not distributed with this work, You can obtain one at https://license.qlova.org/v2

The QPL is compatible with the AGPL which is why both licenses are provided within this repository.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
db
Package db provides an abstract database interface for Go.
Package db provides an abstract database interface for Go.
examples
fs

Jump to

Keyboard shortcuts

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