Skip to content

ProtoMagic is a CLI that helps convert database tables into Protocol Buffers files (.proto).

License

Notifications You must be signed in to change notification settings

toolsascode/protomagic

Repository files navigation

ProtoMagic

ProtoMagic is a CLI that helps convert database tables into Protocol Buffers files.

Documentation

protomagic CLI

Minimal configuration example

databases:
  postgresql:
    dataSourceName: postgres://postgres:12345@localhost:5432/db-name?sslmode=disable
  mysql:
    dataSourceName: root:12345@tcp(localhost:3306)/db-name

Complete configuration example

See: protomagic.yaml

ProtoMagic CLI

  • Run the command by specifying the configuration file
protomagic -c ./my-config-file.yaml