Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 536697
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T09:50:57+00:00 2026-05-13T09:50:57+00:00

Two questions: i want to generate a View in my PostGIS-DB. How do i

  • 0

Two questions:

  • i want to generate a View in my PostGIS-DB. How do i add this View to my geometry_columns Table?

  • What i have to do, to use a View with SQLAlchemy? Is there a difference between a Table and View to SQLAlchemy or could i use the same way to use a View as i do to use a Table?

sorry for my poor english.

If there a questions about my question, please feel free to ask so i can try to explain it in another way maybe 🙂

Nico

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T09:50:57+00:00Added an answer on May 13, 2026 at 9:50 am

    Table objects in SQLAlchemy have two roles. They can be used to issue DDL commands to create the table in the database. But their main purpose is to describe the columns and types of tabular data that can be selected from and inserted to.

    If you only want to select, then a view looks to SQLAlchemy exactly like a regular table. It’s enough to describe the view as a Table with the columns that interest you (you don’t even need to describe all of the columns). If you want to use the ORM you’ll need to declare for SQLAlchemy that some combination of the columns can be used as the primary key (anything that’s unique will do). Declaring some columns as foreign keys will also make it easier to set up any relations. If you don’t issue create for that Table object, then it is just metadata for SQLAlchemy to know how to query the database.

    If you also want to insert to the view, then you’ll need to create PostgreSQL rules or triggers on the view that redirect the writes to the correct location. I’m not aware of a good usage recipe to redirect writes on the Python side.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two questions. I want to send SMSes from a web-site in PHP
Hey everyone, I want to start using Scheme and I have two questions. First,
Well this is a simple question i want to filter two elements sorted reverse
This is a two part question, but I want to make sure the first
Two questions only: I have a website including a section of Blog in wordpress.
Two questions, really: Is there a standard/convention regarding the placement on configuration files? For
So two questions here: If I use <input type=button onclick=validate()> then the enter key
I have two questions regarding jsTree: I am generating a jsTree using JSON with
I have a home page HomeController this loads the home view which has some
Two-part question: I am using acts_as_taggable_on, and I want to generate an array of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.