s3-orm
Version:
Object-Relational Mapping (ORM) interface for Amazon S3, enabling model-based data operations with indexing and querying capabilities
24 lines (17 loc) • 472 B
text/typescript
//import {uniqueId} from "lodash";
import Chance from "chance";
const chance = new Chance();
export class UuidType {
static isNumeric:boolean = false;
static typeName:string = "uuid";
static mock(){
return chance.guid({version: 4});
}
static encode(val: any): string{
if (val === null || val === undefined) return '';
return String(val);
}
static decode(val: any){
return val;
}
}