Skip to content

Commit 8ee1e5d

Browse files
Update README
1 parent 3eeacbc commit 8ee1e5d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -90,14 +90,16 @@ database.create_table({
9090
})
9191
```
9292
The ```name``` and ```type``` decleration is mandatory, the rest are as follows:
93+
9394
| Field | Description | Default Value
9495
| ------ | ------ | --------- |
9596
| length | Maximum length of field | 255 for int and float, 16384 for str
9697
| null | Field value can be Empty |False
9798
| ai | Auto Increment an int field by 1 | False
9899
| default | The default value for a field | None (even if it is used and parallely ```ai``` is used, it defaults to None)
99100
| attribute | The default attribute (primary, unique or index) | None
100-
Primary vs Unique vs Index will be differentiated later here.
101+
102+
Primary vs Unique vs Index will be differentiated later here.
101103
#### .alter_table(properties)
102104
This is used to make any kind of modifications in the structure of Table. ```Properties``` is a dictionary with keys, ```table_name```, the name of the table, ```operation```, one of operation from: "add" or "drop" field(s), and ```fields```, a __list__. For __"add"__ operation, the list contains dictionaries of fields to be added, whereas in __"drop"__ operation, the list only contains the field names to drop. Returns a status code.
103105
##### For Example:

0 commit comments

Comments
 (0)