Giter Club home page Giter Club logo

daily-stoic-api's People

Contributors

bbelderbos avatar glutenfreepy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

daily-stoic-api's Issues

INSERT endpoint

From https://docs.deta.sh/docs/base/sdk:
The insert method inserts a single item into a Base, but is unique from put in that it will raise an error of the key already exists in the database.
insert is roughly 2x slower than put.

  • will succeed, a key will be auto-generated
    res1 = db.insert("hello, world")

  • will succeed.
    res2 = db.insert({"message": "hello, world"}, "greeting1")

  • will raise an error as key "greeting1" already existed.
    res3 = db.insert({"message": "hello, there"}, "greeting1")

Returns
Returns the item on a successful insert, and throws an error if the key already exists.

Add deta branch

Add deta branch and change deta microserver settings to use that branch

database

decide on database:
postgres, deta?
need to refer to slack i guess to see how the script is supposed to run

api key

(before adding insert endpoint)

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.