>>> from kenobi import KenobiDB  

>>> db = KenobiDB('example.db')  

>>> db.insert({'name': 'Yoda', 'lightsaber': 'green'})  
True  

>>> db.search('lightsaber', 'green')  
[{'name': 'Yoda', 'lightsaber': 'green'}]  
  • @[email protected]
    link
    fedilink
    1
    edit-2
    5 months ago

    Which is stated very clearly.

    Not stated, kenobi data engine is limited to only sqlite3. Would pigeon hole yourself unable to switch data engines later on. For that usecase, recommend an ORM (SQLAlchemy).

    kenobi looks like a fun project. Not every project needs to be bleeding edge or the bestest. kenobi is a good choice who those who are making a local app that doesn’t deal with requests.

      • @[email protected]
        link
        fedilink
        15 months ago

        Oh! How embarrassing. Gonna pretend i understand the joke and hope no one notices.

        Not familiar enough with MongoDB, besides it’s not exactly open source

        • @[email protected]
          link
          fedilink
          3
          edit-2
          5 months ago

          All you need to understand about MongoDB is that it is webscale, because it doesn’t do joins and it has the most kick-ass benchmarks. And sharding.

          • biocoder.ronin
            link
            fedilink
            English
            24 months ago

            sharing is the secret to the web scale sauce. you just turn it on and it scales right up