Giter Club home page Giter Club logo

Comments (2)

rathboma avatar rathboma commented on June 1, 2024 1

@ellipsis-dev fix this?

from beekeeper-studio.

ellipsis-dev avatar ellipsis-dev commented on June 1, 2024 1

I was in the process of creating an implementation plan to fix the bug where column comments in the Postgres table structure view are showing as (NULL) instead of the actual comments. I have identified that the issue might be in the 'listTableColumns' function in the '/apps/studio/src/lib/db/clients/postgresql.ts' file, which fetches the table structure from the database but doesn't fetch the column comments. I have created a step to modify this function to fetch the column comments. However, I didn't have enough time to create a step to modify the 'tableData' computed property in the 'TableSchema.vue' file to include the column comments in the data passed to the Tabulator component. I would appreciate if someone could help with this. Thank you.

Implementation proposal (work in progress)

Step 1: Modify the 'listTableColumns' function to fetch column comments

In the '/apps/studio/src/lib/db/clients/postgresql.ts' file, modify the 'listTableColumns' function to fetch the column comments from the Postgres database. Add 'column_comment' to the SELECT clause of the SQL query. Map the 'column_comment' field to the 'comment' property of the returned objects. Make sure to handle any errors and edge cases, and to adhere to the existing code style and conventions.


For more information about Ellipsis, check the documentation.

from beekeeper-studio.

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.