Skip to content

Commit 2335305

Browse files
committed
update readme
1 parent 664c8c9 commit 2335305

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

README.md

+30
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,36 @@ client = NocoDBRequestsClient(
2929
)
3030
```
3131

32+
### Project creation
33+
```python
34+
project_body = {
35+
"title": "MyProject",
36+
"bases": [
37+
{
38+
"type": "pg",
39+
"config": {
40+
"client": "pg",
41+
"connection": {
42+
"host": "localhost",
43+
"port": "5432",
44+
"user": "postgres",
45+
"password": "postgres",
46+
"database": "postgres"
47+
},
48+
"searchPath": [
49+
"public"
50+
]
51+
},
52+
"inflection_column": "camelize",
53+
"inflection_table": "camelize"
54+
}
55+
],
56+
"external": True
57+
}
58+
59+
project = client.project_create(body=project_body)
60+
```
61+
3262
### Project selection
3363
```python
3464
# Be very carefull with org, project_name and table names

0 commit comments

Comments
 (0)