Skip to content
This repository was archived by the owner on Mar 13, 2026. It is now read-only.

Commit 8aef0b3

Browse files
author
Ilya Gurov
authored
Update README.md (#178)
Closes #170
1 parent e336735 commit 8aef0b3

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,11 @@ client = Table(
119119
spanner_interleave_in="team",
120120
spanner_interleave_on_delete_cascade=True,
121121
)
122+
client.add_is_dependent_on(team)
122123

123124
client.create(engine)
124125
```
126+
**Note**: Interleaved tables have a dependency between them, so the parent table must be created before the child table. When creating tables with this feature, make sure to call `add_is_dependent_on()` on the child table to request SQLAlchemy to create the parent table before the child table.
125127

126128
### Unique constraints
127129
Cloud Spanner doesn't support direct UNIQUE constraints creation. In order to achieve column values uniqueness UNIQUE indexes should be used.

0 commit comments

Comments
 (0)