Comments (2)
@ellipsis-dev fix this?
from beekeeper-studio.
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)
- BUG: Pending insert row can't be edited and removed
- BUG: Keyboard navigation in edit field 4.3.1 HOT 1
- BUG: Several more issues with focus (largely thanks to Tabulator / Codemirror) HOT 1
- BUG: Import should stream data rather than reading the whole file into memory
- CHORE: World's first Beekeeper Studio UI test with Playwright
- BUG: Audit SQL Generator and the table creator to make sure it's behaving as expected
- BUG: When closing empty query tab its asking to save/close HOT 1
- CHORE: Move all vue imports to use the extension + update vue cli to require the .vue extension in the import HOT 1
- CHORE: Don't use `~` to import css files from node_modules
- Move background.ts building to ESBuild
- BUG: Losing pending changes after closing the app HOT 3
- BUG: ApplyChanges should only execute a single query for multiple changes to a single record.
- FEAT: support creating unique constraints
- FEAT: Native password manager support HOT 1
- BUG: Postgresql 16 gin index breaks structure view
- FEAT: right click - select top 1000 for any table
- BUG: this.identifyCommands is not a function HOT 1
- Why is my beekeeper studio not allowing the "AVG" function?
- FEAT: Insert a new row with fake data
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from beekeeper-studio.