Ensure table contains all fields

Open
#64 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
30/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Domain
database

Research direction

Start by locating the existing “if not table exist create table” logic in the beginning of main and trace how current classes define their tables. Compare this with the issue’s Suneido reference and determine the expected behavior for existing tables and updates. Done means the proposed ensureTable behavior and compatibility rules are documented and agreed.

Written by the indexing model from the issue text.

Description

It is common to use if not table exist create table in beginning of main.

#1 It is a little redundent, would like to have a single purpose function ensureTable
#2 when delivering an update, it is sometimes breaking code with existing tables, that need to be manually created.

I would suggest to make a function that can ensure to its best the table is ready for the current class.

I remeber this feature from the suneido project https://suneido.com/ had a function ensure, I couldn't find the docs right now

Dominant language
Haxe
Stars
48
Forks
25
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from HaxeFoundation/record-macros

All issues in HaxeFoundation/record-macros

Similar issues

More Databases issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.