Skip to content

Simple functionality of SQL feature in Solidity Smart Contract

Notifications You must be signed in to change notification settings

Smart-Query/SmartQuery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Smart Query

Implementing the features of Structured Query Language to the Solidity Smart Contract.

Authors

Usage

To use this features in your smart contract, import like this:

  import "https://github.com/Smart-Query/SmartQuery/blob/main/Main.sol";

Example

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);
    }
}

About

Simple functionality of SQL feature in Solidity Smart Contract

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published