Skip to content

jo-migo/toml-to-rdb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TOML-to-RDB

CLI to convert a TOML file to an RDB (Redis Database) file.

Usage

Set Redis version in the environment (default = 7 if unset):

export REDIS_VERSION=7.2

Run with TOML input:

cat input.toml | toml-to-rdb > output.rdb

or with gzipped TOML input:

cat input.toml.gz | toml-to-rdb -g > output.rdb

Type Conversions

TOML files containing (unnested) key-value, key-table, and key-set pairs are supported. For example, the following TOML content:

title = "TOML File"

[table]
k = "v"

set = [ a, b ]

would result in a Redis database with:

  • Key title having value TOML File
  • Key table having a hash value with key k and value v
  • Key set having a set value with items a and b

About

Convert TOML file to rdb binary file

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages