Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sschonss/go-sqlite-sql
This CLI was created to convert SQLITE to SQL.
https://github.com/sschonss/go-sqlite-sql
Last synced: 26 days ago
JSON representation
This CLI was created to convert SQLITE to SQL.
- Host: GitHub
- URL: https://github.com/sschonss/go-sqlite-sql
- Owner: sschonss
- Created: 2023-12-28T17:49:45.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-28T17:56:08.000Z (about 1 year ago)
- Last Synced: 2024-11-13T02:13:37.349Z (3 months ago)
- Language: Go
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SQLITE to SQL
## CLI for converting SQLITE to SQL### Description
This CLI was created to convert SQLITE to SQL. It was used GoLang and libraries: [go-sqlite3](github.com/mattn/go-sqlite3 v1.14.19).
---
### Dependencies
- [GoLang](https://golang.org/dl/) >= v1.16.5
- [go-sqlite3](github.com/mattn/go-sqlite3 v1.14.19)
- SQLITE file with the name `database.db` in the same folder as the executable---
### InstallationHow to install the golang: [GoLang](https://golang.org/dl/)
#### Linux
1. Open the terminal
2. Run the command to download golang```bash
sudo apt-get update && sudo apt-get install golang-go
```
3. Verify the installation```bash
go version
```#### Windows
1. Download the installer from the [official website](https://golang.org/dl/)
2. Run the installer
3. Verify the installation```bash
go version
```---
### How to use
1. Download the project
2. Run the command below to install the dependencies
```bash
go get
```3. Run the command below to build the project
```bash
go build -o sqlite2sql
```4. Save the SQLITE file in the same folder as the executable with the name `database.db`
5. Run the command below to convert the SQLITE file to SQL
```bash
./sqlite2sql
```
6. The SQL file will be created in the same folder as the executable with the name `output.sql`---
### Author
- [Luiz Schons](github.com/sschons)
---
### License
[MIT](https://choosealicense.com/licenses/mit/)