Code Monkey home page Code Monkey logo

osqlite3's Introduction

OrangeSqlite3

对 Sqlite3 库本身进行了一个简单的封装
以更好的方便的调用Sqlite
如有使用需求请搜索SqlModel

安装 OrangeSqlite3

本人发现自己对数据库的认知和使用还是过于浅薄
以及实现太过于不优雅和非常屎山
因此此库的确是个人拿来学习并个人使用的
所以有需要者请直接下载源码自行使用

如何创建表与数据库

db = Database("test.sqlite")

@db.table

class Test(Model):
    omg: str = Setting(default="default")
    test: Optional[int]

a=Test(omg='test',test=1)

with db.connect() as s:
    s.add(a)

选择一些元素

with db.connect() as s:
    s.select

osqlite3's People

Contributors

bigorangeqwq 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.