How henriqf/nosei works
Nosei is a small file-backed database service with terminal and TCP command interfaces. The main workflow accepts create/use/insert/read/update/delete commands, validates table rules, and persists table entries and indexes; reads may also filter rows using parsed expressions. The graph reflects the sampled command routing and storage behavior. The README is empty, and unsampled portions of the data package limit detail on table loading and deletion internals.
Main entry points: externo.go Command dispatch · use.go Record operations · share.go Shared database state · ponte.go Create command
Components 18
Command interfaces
- Mode entry
src/main.go - TCP listener
src/ponte/externo.go - Web connection
src/ponte/externo.go - Terminal input
src/ponte/externo.go - Command dispatch
src/ponte/externo.go
Command handling
- Create command
src/ponte/ponte.go - Insert command
src/ponte/ponte.go - Read command
src/ponte/ponte.go - Update command
src/ponte/ponte.go - Delete command
src/ponte/ponte.go
Database engine
- Rule parser
src/data/ruler.go - Database creation
src/data/create.go - Database selection
src/data/use.go - Record operations
src/data/use.go - Expression filtering
src/ops/operacoes.go
Shared runtime
- Shared database state
src/shared/share.go
Other components
- Client
- Database files
Connections 32
- Client → Mode entry: starts
- Mode entry → TCP listener: selects web
- Mode entry → Terminal input: selects terminal
- Client → Web connection: sends commands
- TCP listener → Web connection: accepts connections
- Web connection → Command dispatch: dispatches input
- Terminal input → Command dispatch: dispatches input
- Command dispatch → Create command: routes create
- Command dispatch → Insert command: routes insert
- Command dispatch → Read command: routes read
- Command dispatch → Update command: routes update
- Command dispatch → Delete command: routes delete
- Command dispatch → Database selection: routes use
- Create command → Rule parser: parses rules
- Create command → Database creation: creates database
- Create command → Database selection: selects database
- Insert command → Record operations: inserts record
- Read command → Database selection: loads table
- Read command → Expression filtering: prepares and applies filter
- Read command → Record operations: reads table
- Update command → Record operations: updates record
- Delete command → Record operations: deletes record
- Rule parser → Shared database state: sets table rules
- Database creation → Shared database state: uses schema
- Database selection → Database files: reads rules
- Database selection → Rule parser: parses rules
- Database selection → Shared database state: sets active database
- Record operations → Database files: reads and writes
- Record operations → Shared database state: uses loaded tables
- Expression filtering → Record operations: loads rows
- Expression filtering → Shared database state: reads and sets results
- Database creation → Database files: creates files