"SQLite" (Data Connection)
"SQLite" (Data Connection)
Details
- Use DataConnectionObject to represent data located in an SQLite database in Wolfram Language.
- Import can be used to retrieve data from a DataConnectionObject .
- RelationalDatabase can be used to represent the schema of an "SQLite" database.
Properties
"ConnectionName" "SQLite"
"Location" SQL query given as a string
"Redownload" whether to rerun the query and overwrite cached results
"DatabaseName" string giving the database to access
"FilePath" string giving the path to the SQLite file
"query" SQL query given as a string
Examples
Basic Examples (2)
Create a DataConnectionObject to data from an SQLite query:
DataConnectionObject[
<|"ConnectionName" -> "SQLite", "FilePath" -> FindFile["ExampleData/ecommerce-database.sqlite"], "Location" -> "SELECT * FROM customers"|>]Retrieve the data using Import :
Import@DataConnectionObject[
<|"ConnectionName" -> "SQLite", "FilePath" -> FindFile["ExampleData/ecommerce-database.sqlite"], "Location" -> "SELECT * FROM customers"|>]See Also
DataConnectionObject Import DatabaseReference RelationalDatabase
Data Connections: PostgreSQL MySQL MicrosoftSQL Oracle