1.0.0 • Published 5 years ago

my-sql-files v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

MY SQL FILES

Compact solution to store and serve small files in MySQL tables.

Uses MyISAM table to store 10000 files per one file, making it easy to backup and maintain.

Provides only two asynchronous methods:

  • put(name, data)
  • get(name)

To create something bigger than that - use store composition:

  • metaStore.put(fileName, {width, height})
  • miniStore.put(fileName, resizedImage)
  • originalStore.put(fileName, originalImage)

See examples