Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mindsdb-dependabot-npm-and-yarn-docs-multi-e24c86a36e.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Description

The get_view() and create_view() functions let you save either an existing view or a newly created view into a variable.

Syntax

Use the get_view() method to get an existing view:
my_view = project.get_view('my_view')
Or, the create_view() method to create a view:
my_view = project.create_view(
    'view_name',
    mysql_demo_db.query('SELECT * FROM my_table LIMIT 100')
)