Giter Site home page Giter Site logo

kwil-extension-helpers's Introduction

Helpers Extension

This extension provides helpers to the actions to simplify important functions such as creating unique Ids and dates. Additional methods can also be added to extend the functions available, but for now only 2 exist.

Repo: https://github.com/martin-opensky/kwil-extension-helpers

helper.id()

Without this function, an Id has to be supplied to each action that inserts data to a table. This makes tracking unique Id's more complicated than it needs to be. By using this method, we can be sure that the Id will be unique without having to create one prior to executing the action. This uses nanoid() to ensure a universally unique ID is generated.

helper.date()

This enables dates to be automatically created within the action. It currently only supports 'now' but could easily be expanded to add support for other date strings. e.g '+ 1 day', '+ 1 week' etc

Before using the helpers both id's and date's have to be constructed before calling the action:

With the helper methods these values are created automatically, and only the $message parameter needs to be provided.

kwil-extension-helpers's People

Contributors

martin-opensky avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.