Implementing the features of Structured Query Language to the Solidity Smart Contract.
To use this features in your smart contract, import like this:
import "https://github.com/Smart-Query/SmartQuery/blob/main/Main.sol";
Your smart contract will look like this:
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
import "https://github.com/Smart-Query/SmartQuery/blob/main/Main.sol";
contract Test is Main {
function insert(string memory tableName, string memory data) public {
insertRecord(tableName, data);
}
function select(string memory tableName,
uint256 recordId) public view returns (Record memory ) {
return getRecord(tableName, recordId);
}
}