How to use the cormo.Index function in cormo

To help you get started, we’ve selected a few cormo examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github croquiscom / cormo / packages / graphql / src / decorators.ts View on Github external
export function Index(columns: { [column: string]: 1 | -1 }, options?: { name?: string, unique?: boolean }) {
  const c = cormo.Index(columns, options);
  return (ctor: typeof cormo.BaseModel) => {
    c(ctor);
  };
}

cormo

ORM framework for Node.js

MIT
Latest version published 3 months ago

Package Health Score

61 / 100
Full package analysis