@perdieminc/models
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

PerDiem Models

A simple model extension for Knex to help manage cache

    create<T>(record: any): Promise<T[]>;
    update<T>(conditions: any, record: any, hooks?: ModelHooks): Promise<T[]>;
    del<T>(conditions: any): Promise<T[]>;
    get<T>(conditions: any, hooks?: ModelHooks): Promise<T>;
    getAll<T>(conditions: any, options: any, hooks?: ModelHooks): Promise<T[]>;
    getMany<T>(conditions: any, hooks?: ModelHooks): Promise<T[]>;

Readme

Keywords

Package Sidebar

Install

npm i @perdieminc/models

Weekly Downloads

62

Version

2.0.0

License

MIT

Unpacked Size

44.3 kB

Total Files

26

Last publish

Collaborators

  • saad-tryperdiem
  • doron-perdiem