Skip to content

Commit d84e00e

Browse files
committed
🐛 Delete Files Url
1 parent 0cf5cbb commit d84e00e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ class Flavor(BaseModel):
109109

110110
Now after we create the table, we can initialize the database with the table and then run different queries.
111111

112-
#### [`Init()`](https://github.com/yezz123/ormdantic/blob/400ecfde754fc6613923779a6a545a0f00282752/ormdantic/orm.py#L67)
112+
#### Init()
113113

114114
* Register models as ORM models and initialize the database.
115115

@@ -120,7 +120,7 @@ async def main() -> None:
120120
await database.init()
121121
```
122122

123-
#### [`Insert()`](https://github.com/yezz123/ormdantic/blob/400ecfde754fc6613923779a6a545a0f00282752/ormdantic/generator/_crud.py#L59)
123+
#### Insert
124124

125125
Now let's imagine we have another table called `Coffee` that has a foreign key to `Flavor`.
126126

@@ -157,7 +157,7 @@ As we know, in SQL, we can search for data using different methods, ex. `WHERE`,
157157

158158
In Ormdantic, we can search for data using the `database.find_one` or `database.find_many` methods.
159159

160-
* [`Find_one`](https://github.com/yezz123/ormdantic/blob/400ecfde754fc6613923779a6a545a0f00282752/ormdantic/generator/_crud.py#L35) used to find a Model instance by Primary Key, its could also find with `depth` parameter.
160+
* `Find_one` used to find a Model instance by Primary Key, its could also find with `depth` parameter.
161161

162162
```python
163163
# Find one
@@ -169,7 +169,7 @@ In Ormdantic, we can search for data using the `database.find_one` or `database.
169169
print(find_coffee.flavor.name)
170170
```
171171

172-
* [`Find_many`](https://github.com/yezz123/ormdantic/blob/400ecfde754fc6613923779a6a545a0f00282752/ormdantic/generator/_crud.py#L39) used to find Model instances by some condition ex. `where`, `order_by`, `order`, `limit`, `offset`, `depth`.
172+
* `Find_many` used to find Model instances by some condition ex. `where`, `order_by`, `order`, `limit`, `offset`, `depth`.
173173

174174
```python
175175
# Find many
@@ -181,7 +181,7 @@ In Ormdantic, we can search for data using the `database.find_one` or `database.
181181
)
182182
```
183183

184-
#### [`Update`](https://github.com/yezz123/ormdantic/blob/400ecfde754fc6613923779a6a545a0f00282752/ormdantic/generator/_crud.py#L65) / [`Upsert`](https://github.com/yezz123/ormdantic/blob/400ecfde754fc6613923779a6a545a0f00282752/ormdantic/generator/_crud.py#L71) Queries
184+
#### Update / Upsert Queries
185185

186186
##### Update
187187

@@ -203,7 +203,7 @@ The `Upsert` method is similar to the Synchronize method with one exception; the
203203
await database[Flavor].upsert(flavor)
204204
```
205205

206-
### [`Delete`](https://github.com/yezz123/ormdantic/blob/400ecfde754fc6613923779a6a545a0f00282752/ormdantic/generator/_crud.py#L77)
206+
### Delete
207207

208208
The `DELETE` statement is used to delete existing records in a table.
209209

0 commit comments

Comments
 (0)