joelanman,
@joelanman@hachyderm.io avatar

Another db question! I'm using migration files whenever I make a change to the db. When I'm doing dev, whats a good source of truth for the current structure of the tables (column names, types and so on)? I could app switch to my db admin app but I'd prefer a quick way to reference inside VS Code

NathanClayton,
@NathanClayton@mastodon.social avatar

@joelanman
Are you talking about DB migration and change management? Not sure about the JS world, but Flyway and Liquibase are used pretty extensively in the Java world.

Squitch is another interesting one that uses a change graph instead of a set of linear changes.

joelanman,
@joelanman@hachyderm.io avatar

@NathanClayton No just day to day dev, needing to quickly know what the column names and types are. I now have a plugin for Vs code that lets me see this live on the db

NathanClayton,
@NathanClayton@mastodon.social avatar

@joelanman

Aah, ok. That makes sense. If you use any of the paid JetBrains IDEs, they have great DB functionality built in. In Eclipse you can install SquirrelSQL in the IDE for free, and there's the plugins for VS Code that you've got.

Happy coding!

joelanman,
@joelanman@hachyderm.io avatar

@NathanClayton cheers!

zersiax,
@zersiax@cupoftea.social avatar
joelanman,
@joelanman@hachyderm.io avatar
joelanman,
@joelanman@hachyderm.io avatar
alicegg,
@alicegg@hachyderm.io avatar

@joelanman you can use atlas for that: https://atlasgo.io/

tommyp,
@tommyp@mastodon.social avatar

@joelanman Are you using an ORM? Lots of them spit out some kind of schema file which has the full reference of your DB.

joelanman,
@joelanman@hachyderm.io avatar

@tommyp Yeah knex, will have a look. It's not actually needed in my codebase I just want a reference to check as I do dev

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • DreamBathrooms
  • ngwrru68w68
  • tester
  • magazineikmin
  • thenastyranch
  • rosin
  • khanakhh
  • InstantRegret
  • Youngstown
  • slotface
  • Durango
  • kavyap
  • mdbf
  • tacticalgear
  • JUstTest
  • osvaldo12
  • normalnudes
  • cubers
  • cisconetworking
  • everett
  • GTA5RPClips
  • ethstaker
  • Leos
  • provamag3
  • anitta
  • modclub
  • megavids
  • lostlight
  • All magazines