Add docs for MysqlFramework::Scripts::Table

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

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
45/100
Issue type
Documentation
Clarity
Clearly specified
Activity status
Stale
Tech stack
mysql, ruby

Research direction

Start by reading the README and the existing MysqlFramework::Scripts::Table implementation or usage, then add the provided UsersTable example in the README. Done means the README documents how to define a table, its columns and values, and register it, with the example remaining valid Ruby.

Written by the indexing model from the issue text.

Description

good first issue

Need to add usage examples for MysqlFramework::Scripts::Table in README file.

e.g.

class UsersTable
  extend MysqlFramework::Scripts::Table

  NAME = 'users'

  COLUMNS = [
    :id,
    :name,
    :email,
    :created_at,
    :updated_at
  ]

  def self.column_names
    COLUMNS.map { |c| "`#{NAME}`.`#{c}`" }.join(',')
  end

  def self.values
    COLUMNS.map { |c| '?' }.join(',')
  end

  register_table NAME
end
Dominant language
Ruby
Stars
2
Forks
2
PR merge metrics
No merged PRs in 30d

Getting set up

  • Ships a Dockerfile or Docker Compose file
  • No pull request template
  • No contributing guide

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.

Similar issues

More Ruby issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.