TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: How do you enforce database standards?

3 pointsby aesthetics1over 5 years ago
How does your team ensure that your database standards are being followed? Naming standards, ensuring certain triggers are present, index&#x2F;constraint rules, etc. Do you use tools, code reviews, or some other method?<p>I&#x27;m finding that this seems to be a harder problem to solve than enforcing other types of coding standards.

2 comments

davismwflover 5 years ago
Our DB standards are controlled through code, scripts and code reviews. That works fine for smaller teams and is good for us today (we do use DataGrip by JetBrains to help manage&#x2F;validate our Postgres databases).<p>There are other tools like Red Gate <a href="https:&#x2F;&#x2F;www.red-gate.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.red-gate.com&#x2F;</a>, and others who sell tooling that works on different databases which allow you to automate a lot of standards and deployments etc. Even works for things like data migrations etc. I&#x27;ve used red gate and tools like it on other solutions, a lot of it depends on the architecture and structure of your project.<p>For example, tools like Red Gate work great when you have DBA&#x27;s and developers working together to manage databases (datasets) outside of the application code. It is a more traditional method of data solutions. But as seems to happen in tech, we are back to doing things more from the application and managing structure, migrations and standards through application code. There are valid reasons for both methodologies, so a lot just depends on what you are doing and how your team is structured and how big it is.
评论 #21347677 未加载
verdvermover 5 years ago
I&#x27;m using a sort of ORM, and part of that is making casing consistent. Naming conventions are harder to enforce because this often requires the semantic context to be understood.