mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-27 20:41:58 +03:00
Minor JS API tweaks prompted by documenting them.
FossilOrigin-Name: a82e6faaa642b09d241232c4daa67134d4dfa24bf3ca3725740346ca5269b381
This commit is contained in:
@ -260,10 +260,10 @@ self.sqlite3ApiBootstrap = function sqlite3ApiBootstrap(
|
||||
|
||||
/**
|
||||
If v is-a Array, its join('') result is returned. If
|
||||
isSQLableTypedArray(v) then typedArrayToString(v) is
|
||||
isSQLableTypedArray(v) is true then typedArrayToString(v) is
|
||||
returned. Else v is returned as-is.
|
||||
*/
|
||||
const arrayToString = function(v){
|
||||
const flexibleString = function(v){
|
||||
if(isSQLableTypedArray(v)) return typedArrayToString(v);
|
||||
else if(Array.isArray(v)) return v.join('');
|
||||
return v;
|
||||
@ -516,7 +516,7 @@ self.sqlite3ApiBootstrap = function sqlite3ApiBootstrap(
|
||||
removed.
|
||||
*/
|
||||
util:{
|
||||
affirmBindableTypedArray, arrayToString,
|
||||
affirmBindableTypedArray, flexibleString,
|
||||
bigIntFits32, bigIntFits64, bigIntFitsDouble,
|
||||
isBindableTypedArray,
|
||||
isInt32, isSQLableTypedArray, isTypedArray,
|
||||
|
Reference in New Issue
Block a user