File: notes.md

package info (click to toggle)
python-pyomop 4.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 532 kB
  • sloc: python: 1,374; sh: 37; makefile: 26
file content (14 lines) | stat: -rw-r--r-- 244 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
## Use sqlacodegen
pip install sqlacodegen
sqlacodegen sqlite:///database.db


## Create an _id primary key field in the autogenerated script

Replace metadata, with

```
 metadata,
Column('_id', Integer, nullable=False, primary_key=True),

```