Participer au site avec un Tip
Rechercher
 

Améliorations / Corrections

Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.

Emplacement :

Description des améliorations :

Classe « Connection » Python 3.11.3

Méthode sqlite3.Connection.deserialize

Signature de la méthode deserialize

def deserialize(self, data, /, *, name='main') 

Description

help(Connection.deserialize)

Load a serialized database.

  data
    The serialized database content.
  name
    Which database to reopen with the deserialization.

The deserialize interface causes the database connection to disconnect from the
target database, and then reopen it as an in-memory database based on the given
serialized data.

The deserialize interface will fail with SQLITE_BUSY if the database is
currently in a read transaction or is involved in a backup operation.