Coder Social home page Coder Social logo

Add VIEWS support about go-mysql-server HOT 3 OPEN

src-d avatar src-d commented on August 25, 2024
Add VIEWS support

from go-mysql-server.

Comments (3)

smola avatar smola commented on August 25, 2024 1

@erizocosmico

Do we want view to be persistent across database runs?

Ideally yes. But maybe it is ok to have a first iteration without persistence.

Should views show in show tables?

I would say that we should try to match MySQL behaviour here. And it seems it is possible to use SHOW TABLES to show vews. I'm not sure about syntax details though.

Should we modify the Database interface so that all MUST be able to create views?

Views should probably use a global registry, since they could span multiple databases.

from go-mysql-server.

erizocosmico avatar erizocosmico commented on August 25, 2024

A few questions:

  • Do we want view to be persistent across database runs?
  • Should views show in show tables?
  • Should we modify the Database interface so that all MUST be able to create views? Right now Database interface does not have anything for that, only Alterable interface, but that does not work for views. Another option that would not require changing database interface would be to globally register views in the catalog, but when we implement database qualification that would need to change, so I think the other approach does not require much more work and is more future-proof.

from go-mysql-server.

erizocosmico avatar erizocosmico commented on August 25, 2024

Moved to backlog again, it's not a priority right now, WIP is here

from go-mysql-server.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.