Skip to content

Fatal error when using scalar #339

Closed
@Silve2611

Description

@Silve2611

I am encountering an error when using db.scalar

fatal error: 'try!' expression unexpectedly raised an error: database is locked: file /Library/Caches/com.apple.xbs/Sources/swiftlang/swiftlang-700.1.101.15/src/swift/stdlib/public/core/ErrorType.swift, line 50

It happens because it acceses a database that is also accesed from another application. When I what to use try with the scalar Xcode tells me that no error will be thrown.

I am now using a select all and making the count programatically and it doesn't crash anymore. I also have a busyhandler.

Is it recommended using scalar?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions