https://github.com/itzhep/godb
golang database engine
https://github.com/itzhep/godb
database engine golang
Last synced: 2 months ago
JSON representation
golang database engine
- Host: GitHub
- URL: https://github.com/itzhep/godb
- Owner: Itzhep
- Created: 2024-12-30T08:40:39.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-02T11:01:25.000Z (over 1 year ago)
- Last Synced: 2025-01-06T19:31:31.778Z (over 1 year ago)
- Topics: database, engine, golang
- Language: Go
- Homepage:
- Size: 5.86 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# GoDB
High-performance embedded database engine in Go featuring B-tree indexing and LRU caching.
## Core Features
- In-memory storage with persistence
- B-tree indexes (O(log n) operations)
- LRU query caching
- Thread-safe operations
- ACID transactions
- CLI interface
## Technical Specifications
### Data Types
- STRING
- INTEGER
- FLOAT
- BOOLEAN
- BLOB
### Constraints
- PRIMARY KEY
- NOT NULL
- UNIQUE
### Performance
- B-tree degree: 4
- Cache size: 1000 entries
- Concurrent read/write
## Installation
```bash
git clone https://github.com/Itzhep/godb
cd godb
go build
```
## Start GoDB
./godb
# Database Operations
create database testdb
use testdb
# Table Operations
create table users id:INTEGER,PK name:STRING,NN email:STRING,UNIQUE
insert users id=1 name=John email=john@example.com
select users name=John