Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/piorosen/sqldump-to-object

mariadb sql dump(.sql) file to In Memory Object on Go Language.
https://github.com/piorosen/sqldump-to-object

dump go mariadb mysql sql sqldump

Last synced: about 2 months ago
JSON representation

mariadb sql dump(.sql) file to In Memory Object on Go Language.

Awesome Lists containing this project

README

        

# Mariadb SQL Dump file to Object in memory.

# This Project is Deprecated!!!

## Intoduce

## How Use?

```go
// Install
$ go install github.com/Piorosen/sqldump-to-object/cmd/[email protected]
$ sqldumps -file test.sql -to json
```

```go
package main

import sqldumptocsv "github.com/Piorosen/sqldump-to-object"

func main() {
file, _ := os.Open("test.sql")
obj, _ := io.ReadAll(file)
r := sqldumptocsv.Parse(obj)
fmt.Printf("%s", r)
}
```

## License

MIT License