Add order by NULLS FIRST/LAST

Open
#539 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
sqlite, swift
Domain
database

Research direction

Start by reviewing SQLite.swift's existing ordering and expression APIs, then check how SQLite represents ORDER BY expressions involving NULL values. Define the supported custom-expression behavior for NULLS FIRST/LAST and verify it with focused ordering tests; the issue is done when callers can express the requested ordering without raw SQL.

Written by the indexing model from the issue text.

Description

enhancement

Would be great to have the ability to add custom expressions so we can add different things that aren't covered in the library already. For example, I need to run a ORDER BY "fieldName" IS NULL, but there is no such expression available for the fields. Is there another way to do this without running custom SQL?

Dominant language
Swift
Stars
10.2k
Forks
1.6k
Avg merge
6d 2h
Merged PRs (30d)
2

Contributor guide

Open the 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.

More from stephencelis/SQLite.swift

All issues in stephencelis/SQLite.swift

Similar issues

More Swift issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.