Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bingtsingw/orchid-helper


https://github.com/bingtsingw/orchid-helper

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

# @bingtsingw/orchid-helper

## How to use

```ts
import { BaseTable } from '@bingtsingw/orchid-helper';

export class TableUser extends BaseTable {
public override readonly table = 'user';

public override columns = this.setColumns((t) => ({
...t.baseColumns(),

name: t.string().nullable(),
// ...
}));
}
```

## How to test

1. Go to `apps/db` folder
2. Run `npm run db:test-rebuild` to setup test database
3. Run `npm run db:test` to run database test