haven-life / persistor

Amorphic: ORM (PostgreSQL / MongoDB)
MIT License
0 stars 6 forks source link

Persistor Remote Object Support #37

Closed nsaenz7 closed 4 years ago

nsaenz7 commented 4 years ago

Support for storing data properties in places other than the database.

Out of the box support: writing to local FS, writing to an aws S3 bucket.

Usage:

initialize the remote doc configurations PersistObjectTemplate.setRemoteDocConnection({ bucketName: 'PER_APPLICATION_BUCKET_NAME', environment: 'ENVIRONMENT_HERE' });

@property({ isRemoteObject: true, remoteKeyBase: 'key-base-here' }) remoteDocumentProperty string;