hemilabs / hemilabs/larry

multidb: change tables map to map[string]larry.database

Open
#19 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

# Issue
Currently, MultiDB accepts a map[string]string to initialize each table as a separate database. This requires manually integrating each database type into the MultiDB package, and prevents more nuanced configuration of said databases.

# Proposed Solution
Replace the current method by allowing users to pass in a `map[string]larry.database` that maps the table name to a pre-constructed Larry compliant database.

Contributor guide

Open the contributing guide

Research direction

Locate the MultiDB entry point and the current map[string]string initialization path, then read the larry.database interface used by the package. Done means MultiDB accepts a map[string]larry.database mapping table names to pre-constructed databases, while preserving the intended per-table setup.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
databases
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.