Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • L lab-exercises
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 2
    • Issues 2
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • data-networks-web
  • lab-exercises
  • Wiki
  • lab 18

lab 18 · Changes

Page history
Update lab 18 authored Mar 05, 2018 by Dan McQuillan's avatar Dan McQuillan
Hide whitespace changes
Inline Side-by-side
lab-18.md
View page @ 96d28f1f
# sqlalchemy
# flask-sqlalchemy
In this lab we will implement SQLAlchemy in the mywits app. SQLAlchemy is an example of an ORM (Object Relational Mapper), which means we can deal with our data models & queries as python objects and attributes. Using sqlalchemy means we can abstract our code away from using sql directly, and leave sqlalchemy to do secure & efficient interactions with the database behind the scenes.
This lab comes with full and annotated example code. However you are **strongly** encouraged to try each step for yourself as much as possible before resorting to the code in the repo.
This lab comes with [full and annotated example code](http://gitlab.doc.gold.ac.uk/data-networks-web/lab-exercises/tree/master/lab-18). However you are **strongly** encouraged to try each step for yourself as much as possible before resorting to the code in the repo.
## install flask-sqlalchemy
pip install --user flask-sqlalchemy
## setting up flask-sqlalchemy
To set up flask-sqlalchemy we need to
......
Clone repository
  • Home
  • lab 1
  • lab 12
  • lab 13
  • lab 14
  • lab 15
  • lab 17
  • lab 18
  • lab 2
  • lab 20
  • lab 3
  • lab 4
  • lab 5
  • lab 6
  • lab 7
View All Pages