isAutoIncrement in WCDB.Swift
Author: wkmeowCreated Oct 27, 2020Updated Mar 14, 2026
Labelsbug
The language of WCDB
e.g. Objective-C, Swift or Java
Swift
The version of WCDB
e.g. v1.0.5 WCDB.Swift
The platform of WCDB
e.g. iOS, macOS or Android iOS
The installation of WCDB
e.g. Cocoapods, Carthage, Maven, AAR Package or Git clone
Cocoapods
What's the issue?
Post the outputs or screenshots for errors.
Explain what you want by example or code in English.
when I set var isAutoIncrement: Bool { return true } for struct model , and debugPrint the lasetInserRowId is aways Option(0), dose it only support class model?
Source: Tencent/wcdb