Skip to content

Commit

Permalink
refactor: migrate from prisma to drizzle (#39)
Browse files Browse the repository at this point in the history
* chore: initital drizzle setup

* refactor: finish prisma to drizzle migration
  • Loading branch information
robert-bo-davis authored May 12, 2024
1 parent 2ecf974 commit 2371def
Show file tree
Hide file tree
Showing 43 changed files with 5,468 additions and 3,012 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,6 @@ jobs:
- name: Install Dependencies
run: npm ci

- name: Generate Prisma Client
run: npm run prisma:generate

- name: Build
run: npm run build

Expand Down
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,3 @@ vscode-profile*
.chromadb
.postgres
**/*.log

**/migrations/
9 changes: 3 additions & 6 deletions core/src/error/errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,9 @@ export class CodeLlmError<
export const isError = <TCodes extends ErrorCodes = ErrorCodes>(
target: unknown,
code?: keyof TCodes,
): target is CodeLlmError<TCodes> => {
return (
target instanceof CodeLlmError &&
(!code || (target as CodeLlmError<TCodes>).code === code)
);
};
): target is CodeLlmError<TCodes> =>
target instanceof CodeLlmError &&
(!code || (target as CodeLlmError<TCodes>).code === code);

/**
* Resolves a target that could throw and returns a CodeLlmError if the target fails
Expand Down
Loading

0 comments on commit 2371def

Please # to comment.