home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 696445766

This data as json

html_url issue_url id node_id user created_at updated_at author_association body reactions issue performed_via_github_app
https://github.com/simonw/sqlite-utils/pull/161#issuecomment-696445766 https://api.github.com/repos/simonw/sqlite-utils/issues/161 696445766 MDEyOklzc3VlQ29tbWVudDY5NjQ0NTc2Ng== 9599 2020-09-22T00:10:50Z 2020-09-22T00:11:12Z OWNER

A less horrible interface might be the following: ```python

Ensure the 'age' column is not null:

table.transform(not_null={"age"})

The 'age' column is not null but I don't want it to be:

table.transform(not_null={"age": False}) ``` So if the argument is a set it means "make sure these are all not null" - if the argument is a dictionary it means "set these to be null or not null depending on if their dictionary value is true or false".

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
705975133  
Powered by Datasette · Queries took 1.258ms · About: github-to-sqlite