Enable the 2 new SQLite 3.51.0 amalgamation extensions.
Nessuno ha ancora preso questa issue.
- Lingua principale
- JavaScript
- Stelle
- 122k
- Fork
- 37.3k
- Merge medio
- 4g 2h
- PR unite (30g)
- 283
Descrizione
Depends on #60614.
What is the problem this feature will solve?
SQLite 3.51.0 added 2 new extensions to the amalgamation:
-
Carray: Enabled by compile-time flag
-DSQLITE_ENABLE_CARRAY. Useful for binding C-language arrays to SQL queries. I am unsure wether JS/TS can make use of this directly, but perhaps it may at least be useful for internal use in the Node.js-SQLite bindings. I am, however, not familiar enough with the code to comment on it. -
Percentile: Enabled by compile-time flag
-DSQLITE_ENABLE_PERCENTILE. Useful for extracting various statistical percentages from tables and should be faster than JS by having a native implementation. It also includes another compile time flag,-DSQLITE_ENABLE_ORDERED_SET_AGGREGATES=1, which can be set to 1 to support cross-platform SQL syntax, adding the newWITHINkeyword. Also increases binary size by about 1200 bytes. See the docs for all details: https://sqlite.org/compile.html#enable_ordered_set_aggregates.
What is the feature you are proposing to solve the problem?
Enable the Percentile extension with its compile flags.
Carray usefulness should be investigated and can also be enabled via its compile-time flag.
What alternatives have you considered?
Missing out on these new extensions.
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia esaminando la dipendenza #60614 e l’integrazione dell’amalgamation SQLite di Node.js. Verifica come vengono forniti i flag di compilazione, quindi valuta l’abilitazione di SQLITE_ENABLE_PERCENTILE, SQLITE_ENABLE_ORDERED_SET_AGGREGATES e SQLITE_ENABLE_CARRAY; il lavoro è completo quando le estensioni previste sono abilitate e il relativo supporto è stato verificato.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- c, node.js, sqlite
- Ambito
- backend, databases
- Tipo di issue
- Funzionalità
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Tranquilla
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 43/100