Skip to content
This repository was archived by the owner on Feb 21, 2020. It is now read-only.

Commit 4835a08

Browse files
authored
Add Clarifications for ID Column
1 parent 8247ab2 commit 4835a08

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

README.rst

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,18 @@ From git: ::
2121

2222
git clone https://github.com/LocusEnergy/vertica-sqlalchemy
2323
cd vertica-sqlalchemy
24-
python setup.py install
24+
python setup.py install
25+
26+
27+
Usage
28+
------------
29+
30+
**ID/Primary Key Declaration**
31+
32+
Do not use this. The INSERT will fail as it will try to insert the ID
33+
34+
id = Column(Integer, primary_key=True)
35+
36+
Do the following instead
37+
38+
id = Column(Integer, Sequence('user_id_seq'), primary_key=True)

0 commit comments

Comments
 (0)