https://github.com/leoantony72/disql
Distributed sqlite with replication (2phase commit)
https://github.com/leoantony72/disql
2phasecommit database distributed-systems golang sql sqlite
Last synced: about 2 months ago
JSON representation
Distributed sqlite with replication (2phase commit)
- Host: GitHub
- URL: https://github.com/leoantony72/disql
- Owner: leoantony72
- Created: 2025-03-02T06:04:24.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-05T14:45:23.000Z (over 1 year ago)
- Last Synced: 2025-03-09T20:12:19.600Z (over 1 year ago)
- Topics: 2phasecommit, database, distributed-systems, golang, sql, sqlite
- Language: Go
- Homepage:
- Size: 10.3 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# **DisQL - Distributed Sqlite Server with Go**
DisQL is a distributed sqlite server written in golang, with replication done with 2-phase commit. It's suitable for your next hobby projects requiring limited database usage.

### Installation
1. Clone the repository: **`git clone https://github.com/leoantony72/Disql.git`**
2. Navigate to the project directory: **`cd Disql`**
3. Install dependencies: **`go mod tidy`**
4. Start the project:
```go
go run main.go -port=8000 -connections=localhost:9090 -file=gorm.db -rpc=8080
go run main.go -port=9000 -connections=localhost:8080 -file=db.db -rpc=9090
```
### Usage
**_Connect to the server 8000/9000_**
```go
telnet localhost 8000
```
**_Execute Sql commands_**
```sql
create table student(id int, name varchar(20), age int);
```
## **Contributing**
If you'd like to contribute to Project Title, here are some guidelines:
1. Fork the repository.
2. Create a new branch for your changes.
3. Make your changes.
4. Write tests to cover your changes.
5. Run the tests to ensure they pass.
6. Commit your changes.
7. Push your changes to your forked repository.
8. Submit a pull request.