github.com/lukasaron/data-discogs
Package discogs introduces a way to categorize XML data dumps from Discogs: https://data.discogs.com. The intention of using this parser is a library, which means there is not an executable part provided. The project has no other dependencies than the Golang language itself. There are three existing writers supported by default: JSON, SQL and DB. JSON Writer - As the name prompts this writer transforms input XML into JSON format. This writer could be used as a solution that converts data into any NoSQL database. SQL Writer - The second supported writer creates SQL file with all necessary data from input. This file can be executed in any SQL database and the result will be populated table with the proper information. DB Writer - The last writer is for direct communication with the SQL database. All input data will be saved into appropriate tables immediately. Before using this writer all required data tables need to be created. For that purpose please run the SQL script named tables.sql in the sql_scripts folder.. You can also set up indexes on any column you want, to facilitate this process there is also the script called indexes.sql situated in the sql_script folder. To speed up a data transformation I would rather recommend creating indexes after the whole processing is completed. Example of basic usage: Example with SQL writer
proxy.golang.org
v1.0.3
about 6 years ago
4
Links
| Registry | proxy.golang.org |
| Source | Repository |
| Docs | Documentation |
| JSON API | View JSON |
| CodeMeta | codemeta.json |
Package Details
| PURL |
pkg:golang/github.com/lukasaron/data-discogs
spec |
| License | BSD-3-Clause |
| Namespace | github.com/lukasaron |
| First Release | about 6 years ago |
| Last Synced | 14 days ago |
Repository
| Stars | 4 on GitHub |
| Forks | 1 on GitHub |