Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bingtsingw/orchid-helper
https://github.com/bingtsingw/orchid-helper
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/bingtsingw/orchid-helper
- Owner: bingtsingw
- License: mit
- Created: 2024-08-04T05:27:16.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-10-23T23:53:37.000Z (2 months ago)
- Last Synced: 2024-10-24T13:28:47.345Z (about 2 months ago)
- Language: TypeScript
- Size: 237 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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