nim-eth/eth
Kim De Mey e5c2b1784e
Replace registerCustomScalarFunction with createCustomFunction (#649)
* Replace registerCustomScalarFunction with createCustomFunction

The nice thing about `registerCustomScalarFunction` and
`registerCustomScalarFunction` was that it kept the sqlite calls
of type sqlite3_value_xxx inside kvstore_sqlite.

The big downside however is that the "custom" call is awfully
specific due to the specific function signature it demands.
It is likely that for each different use case, a new version
needs to be added.

In this PR the code gets altered to `createCustomFunction` which
allows to just create a custom function with directly xFunc
signature of sqlite. The downside of this is that you still need
to import sqlite_abi in your local code to have access to each of
the sqlite3_value_xxx and sqlite3_result_xxx calls. These could of
course also be wrapped.

* Fix custom sql func test
2023-11-21 14:39:24 +01:00
..
common Fix rlpHash of Transaction: remove EIP-4844 blobs before hashing (#643) 2023-10-22 14:37:49 +07:00
db Replace registerCustomScalarFunction with createCustomFunction (#649) 2023-11-21 14:39:24 +01:00
keyfile keyfile: reduce imports (#633) 2023-08-21 11:11:52 +02:00
net switch NAT module from ValidIpAddress to IpAddress (#647) 2023-11-10 09:28:21 +03:00
p2p switch NAT module from ValidIpAddress to IpAddress (#647) 2023-11-10 09:28:21 +03:00
rlp rlp: avoid aliasing casts (#637) 2023-09-25 11:30:47 +02:00
trie add/change Deneb fields per https://github.com/ethereum/execution-apis/pull/417 (#616) 2023-06-03 18:47:55 +00:00
utp Allow passing along the handshake ENR through talkresp handler (#634) 2023-08-30 17:44:05 +02:00
async_utils.nim awaitWithTimeout for Future[void] 2021-02-04 16:45:50 +02:00
bloom.nim clean up eth_types (#531) 2022-09-02 16:57:52 +02:00
common.nim clean up eth_types (#531) 2022-09-02 16:57:52 +02:00
eip1559.nim Add a helper for calculating the EIP1559 base fee 2022-08-18 23:36:45 +03:00
keyfile.nim Add build_dcli target and add it to CI (#344) 2021-04-06 13:33:24 +02:00
keys.nim Remove all Defect raises to avoid unnecessary warnings (#607) 2023-05-10 15:50:04 +02:00
p2p.nim Add closeWait to EthereumNode 2023-09-08 21:45:41 +07:00
rlp.nim rlp: avoid aliasing casts (#637) 2023-09-25 11:30:47 +02:00
trie.nim Add build_dcli target and add it to CI (#344) 2021-04-06 13:33:24 +02:00