ActiveRecord 模式的 ORM Orator

码农软件 · 软件分类 · ORM/持久层框架 · 2019-09-23 05:57:15

软件介绍

Orator ORM 提供了一个简单而优美的 ActiveRecord 实现。

它有部分灵感来自于 Laravel 框架的数据库部分,但很大程度上修改为更 pythonic。

功能特性:

  • 一个简单但强大的 ORM

  • 数据库不可知 Schema Builder

  • 一个低级别的查询生成器,以避免 ORM Migrations

  • 支持 PostgreSQL、MySQL 和 SQLite 开箱即用

Orator ORM 支持 python 2.7+和 3.2+ 版本。

基本用法:

from orator import DatabaseManager, Model

config = {
    'mysql': {
        'driver': 'mysql',
        'host': 'localhost',
        'database': 'database',
        'user': 'root',
        'password': '',
        'prefix': ''
    }
}

db = DatabaseManager(config)
Model.set_connection_resolver(db)

本文地址:https://www.codercto.com/soft/d/15196.html

Is Parallel Programming Hard, And, If So, What Can You Do About

Is Parallel Programming Hard, And, If So, What Can You Do About

Paul E. McKenney

The purpose of this book is to help you understand how to program shared-memory parallel machines without risking your sanity.1 By describing the algorithms and designs that have worked well in the pa......一起来看看 《Is Parallel Programming Hard, And, If So, What Can You Do About 》 这本书的介绍吧!

HTML 压缩/解压工具
HTML 压缩/解压工具

在线压缩/解压 HTML 代码

XML、JSON 在线转换
XML、JSON 在线转换

在线XML、JSON转换工具

RGB CMYK 转换工具
RGB CMYK 转换工具

RGB CMYK 互转工具