Skip to content

sis-I/Flask_SQLAlchemy_tut

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flask_SQLAlchemy_tut

This app is for trial of Flask_SQLAlchemy using flask-sqlalchemy documentation.

For the most part, you should use SQLAlchemy as usual. The SQLAlchemy extension instance creates, configures, and gives access to the following things:

SQLAlchemy.Model declarative model base class. It sets the table name automatically instead of needing tablename.

SQLAlchemy.session is a session that is scoped to the current Flask application context. It is cleaned up after every request.

SQLAlchemy.metadata and SQLAlchemy.metadatas gives access to each metadata defined in the config.

SQLAlchemy.engine and SQLAlchemy.engines gives access to each engine defined in the config.

SQLAlchemy.create_all() creates all tables.

You must be in an active Flask application context to execute queries and to access the session and engine.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published