close - Close SQLite connection - MATLAB (original) (raw)

Main Content

Syntax

Description

close([conn](#mw%5F866c0628-b697-4f80-97b3-d6bbeb3f17dd%5Fsep%5Fshared-conn)) closes the SQLite connection by using the MATLABĀ® interface to SQLite.

Note

The SQLite connection object remains open until you close it using theclose function. Always close this object when you finish using it.

example

Examples

collapse all

Close SQLite Connection Object

Create an SQLite connection using the MATLABĀ® interface to SQLite and the existing database file tutorial.db, which is in the current folder.

dbfile = fullfile(pwd,"tutorial.db"); conn = sqlite(dbfile);

To import data from the database file, use the fetch function.

Close the SQLite connection.

Input Arguments

collapse all

SQLite database connection, specified as an sqlite object created using the sqlite function.

Version History

Introduced in R2016a