knox / TypeORM-readme-2.ts
0 likes
0 forks
1 files
Last active
1 | const userRepository = MyDataSource.getRepository(User) |
2 | |
3 | const user = new User() |
4 | user.firstName = "Timber" |
5 | user.lastName = "Saw" |
6 | user.age = 25 |
7 | await userRepository.save(user) |
8 | |
9 | const allUsers = await userRepository.find() |
10 | const firstUser = await userRepository.findOneBy({ |
knox / TypeORM-readme-1.ts
0 likes
0 forks
1 files
Last active
1 | import { Entity, PrimaryGeneratedColumn, Column } from "typeorm" |
2 | |
3 | @Entity() |
4 | export class User { |
5 | @PrimaryGeneratedColumn() |
6 | id: number |
7 | |
8 | @Column() |
9 | firstName: string |
knox / CrewAI-readme-21.sh
0 likes
0 forks
1 files
Last active
1 | pip install 'crewai[tools]' |
knox / CrewAI-readme-20.sh
0 likes
0 forks
1 files
Last active
1 | pip install crewai |
knox / CrewAI-readme-19.sh
0 likes
0 forks
1 files
Last active
1 | pip install dist/*.tar.gz |
knox / CrewAI-readme-18.sh
0 likes
0 forks
1 files
Last active
1 | uv build |
knox / CrewAI-readme-17.sh
0 likes
0 forks
1 files
Last active
1 | uvx mypy |
knox / CrewAI-readme-16.sh
0 likes
0 forks
1 files
Last active
1 | uvx pytest |
knox / CrewAI-readme-15.sh
0 likes
0 forks
1 files
Last active
1 | pre-commit install |
knox / CrewAI-readme-14.sh
0 likes
0 forks
1 files
Last active
1 | uv venv |