{"size": 380, "ext": "js", "max_stars_repo_path": "test/unit/tag-helpers/sql.jsonColumnText.js", "max_stars_repo_name": "Sharaal/sql", "max_stars_repo_stars_event_min_datetime": "2019-04-01T13:35:26.000Z", "max_stars_repo_stars_event_max_datetime": "2021-12-20T11:17:35.000Z", "max_issues_repo_path": "test/unit/tag-helpers/sql.jsonColumnText.js", "max_issues_repo_name": "Sharaal/sql", "max_issues_repo_issues_event_min_datetime": "2019-02-27T10:07:17.000Z", "max_issues_repo_issues_event_max_datetime": "2021-09-13T16:01:40.000Z", "max_forks_repo_path": "test/unit/tag-helpers/sql.jsonColumnText.js", "max_forks_repo_name": "Sharaal/sql-pg", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 8, "max_issues_count": 36, "max_forks_count": null, "avg_line_length": 25.3333333333, "max_line_length": 70, "alphanum_fraction": 0.5052631579}
const sql = require('../../../')()
const { testTagHelper } = require('../test')

describe('sql.jsonColumnObject', () => {
  it('use the column and keys to build a chain access a text', () => {
    testTagHelper(
      sql.jsonColumnText(['column', 'keyA', 'keyB', 'keyC']),
      {
        text: '"column"->\'keyA\'->\'keyB\'->>\'keyC\'',
        values: []
      }
    )
  })
})
