Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/piorosen/sqldump-to-object
- Owner: Piorosen
- License: mit
- Created: 2023-11-19T18:13:52.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-28T02:46:34.000Z (about 1 year ago)
- Last Synced: 2024-10-12T05:22:24.726Z (3 months ago)
- Topics: dump, go, mariadb, mysql, sql, sqldump
- Language: Go
- Homepage:
- Size: 29.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 mainimport 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