Skip to content

JsonDB is wrapper for the data from sql databases. With JsonDB you can retrieve data with the JSON wrap around.

License

Notifications You must be signed in to change notification settings

asaushkin/jsondb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

jsondb

JsonDB is wrapper for the data from sql databases. With JsonDB you can retrieve data with the JSON wrap around.

Example

Using the JsonDB is very simple:

package main

import (
    "database/sql"
    "fmt"
    "log"

    "github.com/asaushkin/jsondb"

    _ "github.com/lib/pq"
)

func main() {
    db, err := sql.Open("postgres", "host=10.84.0.6 dbname=timeacc sslmode=disable")
    if err != nil {
        log.Fatal(err)
    }
    defer db.Close()

    j, err := jsondb.NewJsonDB(db)
    fmt.Println(j.Json("select * from goings limit 1"))
}

About

JsonDB is wrapper for the data from sql databases. With JsonDB you can retrieve data with the JSON wrap around.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages