TiDB v6.1 中文手册
· · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 149 4.3.4 使用 Django 构建 TiDB 应用程序 · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 预期输出 4.3.4 使用 Django 构建 TiDB 应用程序 本文档将展示如何使用 Django 构建一个 TiDB Web 应用程序。使用 django-tidb 模块作为数据访问能力的框架。示 例应用程序的代码可从 Github 下载。 这是一个较为完整的构建 Restful API 的示例应用程序,展示了一个使用 TiDB 作为数据库的通用 Django 后端服 务。该示例设计了以下过程,用于还原一个现实场景: goods。且每个玩家都拥有一个字 段 id,作为玩家的唯一标识。玩家在金币数和货物数充足的情况下,可以自由地交易。 你可以以此示例为基础,构建自己的应用程序。 185 建议: 在云原生开发环境中尝试 Django 构建 TiDB 应用程序。 预配置完成的环境将自动启动 TiDB 集群、获取和运行代码,只需要一个链接:现在就试试。 4.3.4.1 第 1 步:启动你的 TiDB 集群 本节将介绍 TiDB0 码力 | 3572 页 | 84.36 MB | 1 年前3TiDB v8.5 Documentation
statements, it is recommended to use ORM framework for development, such as SQLAlchemy, Peewee, and Django ORM. It can help you: • Reduce boilerplate code for managing connections and transactions. • Manipulate statements, it is recommended to use ORM framework for development, such as SQLAlchemy, Peewee, and Django ORM. It can help you: • Reduce boilerplate code for managing connections and transactions. • Manipulate statements, it is recommended to use ORM framework for development, such as SQLAlchemy, Peewee, and Django ORM. It can help you: • Reduce boilerplate code for managing connections and transactions. • Manipulate0 码力 | 6730 页 | 111.36 MB | 9 月前3TiDB v8.4 Documentation
statements, it is recommended to use ORM framework for development, such as SQLAlchemy, Peewee, and Django ORM. It can help you: • Reduce boilerplate code for managing connections and transactions. • Manipulate statements, it is recommended to use ORM framework for development, such as SQLAlchemy, Peewee, and Django ORM. It can help you: • Reduce boilerplate code for managing connections and transactions. • Manipulate statements, it is recommended to use ORM framework for development, such as SQLAlchemy, Peewee, and Django ORM. It can help you: • Reduce boilerplate code for managing connections and transactions. • Manipulate0 码力 | 6705 页 | 110.86 MB | 9 月前3TiDB v6.1 Documentation
time, # and exponentially increase the wait time for each transaction �→ failure sleep_ms = int(((1.5 ** n) + rand) * 100) sleep(sleep_ms) # make sure your sleep() takes milliseconds Note: If you frequently Expressions for Pushdown. • Predicate push down. 4.11.3 Legacy Docs 4.11.3.1 App Development for Django Note: This legacy document is outdated and will not be updated thereafter. You can see Developer more details. This tutorial shows you how to build a simple Python application based on TiDB and Django. The sample application to build here is a simple CRM tool where you can add, query, and update customer0 码力 | 4487 页 | 84.44 MB | 1 年前3TiDB v8.4 中文手册
mysqlclient 中表示为元组 (tuple))映射为数据对象 建议仅在需要编写复杂的 SQL语句时使用驱动程序。其他情况下,建议使用 ORM框架进行开发,例如SQLAlchemy、 Peewee 和Django。ORM 可以帮助你: • 减少管理连接和事务的模板代码 • 使用数据对象代替大量 SQL 语句来操作数据 4.3.3.1.5 下一步 • 关于 mysqlclient 的更多使用方法,可以参考 (Tuple) 或者字典 (Dictionary))映射为数据对象 建议仅在需要编写复杂的 SQL语句时使用驱动程序。其他情况下,建议使用 ORM框架进行开发,例如SQLAlchemy、 Peewee 和Django。ORM 可以帮助你: • 减少管理连接和事务的模板代码 • 使用数据对象代替大量 SQL 语句来操作数据 4.3.3.2.5 下一步 • 关于 mysql-connector-python (tuple) 或者字典 (dict))映射为数据对象 建议仅在需要编写复杂的 SQL语句时使用驱动程序。其他情况下,建议使用 ORM框架进行开发,例如SQLAlchemy、 Peewee 和Django。ORM 可以帮助你: • 减少管理连接和事务的模板代码 • 使用数据对象代替大量 SQL 语句来操作数据 4.3.3.3.5 下一步 • 关于 PyMySQL 的更多使用方法,可以参考0 码力 | 5072 页 | 104.05 MB | 9 月前3TiDB v8.5 中文手册
mysqlclient 中表示为元组 (tuple))映射为数据对象 建议仅在需要编写复杂的 SQL语句时使用驱动程序。其他情况下,建议使用 ORM框架进行开发,例如SQLAlchemy、 Peewee 和Django。ORM 可以帮助你: • 减少管理连接和事务的模板代码 • 使用数据对象代替大量 SQL 语句来操作数据 4.3.3.1.5 下一步 • 关于 mysqlclient 的更多使用方法,可以参考 (Tuple) 或者字典 (Dictionary))映射为数据对象 建议仅在需要编写复杂的 SQL语句时使用驱动程序。其他情况下,建议使用 ORM框架进行开发,例如SQLAlchemy、 Peewee 和Django。ORM 可以帮助你: 146 • 减少管理连接和事务的模板代码 • 使用数据对象代替大量 SQL 语句来操作数据 4.3.3.2.5 下一步 • 关于 mysql-connector-python (tuple) 或者字典 (dict))映射为数据对象 建议仅在需要编写复杂的 SQL语句时使用驱动程序。其他情况下,建议使用 ORM框架进行开发,例如SQLAlchemy、 Peewee 和Django。ORM 可以帮助你: • 减少管理连接和事务的模板代码 • 使用数据对象代替大量 SQL 语句来操作数据 4.3.3.3.5 下一步 • 关于 PyMySQL 的更多使用方法,可以参考0 码力 | 5095 页 | 104.54 MB | 9 月前3TiDB v6.5 Documentation
statements, it is recommended to use ORM framework for development, such as SQLAlchemy, Peewee, and Django ORM. It can help you: • Reduce boilerplate code for managing connections and transactions. • Manipulate statements, it is recommended to use ORM framework for development, such as SQLAlchemy, Peewee, and Django ORM. It can help you: • Reduce boilerplate code for managing connections and transactions. • Manipulate statements, it is recommended to use ORM framework for development, such as SQLAlchemy, Peewee, and Django ORM. It can help you: • Reduce boilerplate code for managing connections and transactions. • Manipulate0 码力 | 5282 页 | 99.69 MB | 1 年前3TiDB v7.1 Documentation
statements, it is recommended to use ORM framework for development, such as SQLAlchemy, Peewee, and Django ORM. It can help you: • Reduce boilerplate code for managing connections and transactions. • Manipulate statements, it is recommended to use ORM framework for development, such as SQLAlchemy, Peewee, and Django ORM. It can help you: • Reduce boilerplate code for managing connections and transactions. • Manipulate statements, it is recommended to use ORM framework for development, such as SQLAlchemy, Peewee, and Django ORM. It can help you: • Reduce boilerplate code for managing connections and transactions. • Manipulate0 码力 | 5716 页 | 104.74 MB | 1 年前3TiDB v7.6 Documentation
statements, it is recommended to use ORM framework for development, such as SQLAlchemy, Peewee, and Django ORM. It can help you: • Reduce boilerplate code for managing connections and transactions. • Manipulate statements, it is recommended to use ORM framework for development, such as SQLAlchemy, Peewee, and Django ORM. It can help you: • Reduce boilerplate code for managing connections and transactions. • Manipulate statements, it is recommended to use ORM framework for development, such as SQLAlchemy, Peewee, and Django ORM. It can help you: • Reduce boilerplate code for managing connections and transactions. • Manipulate0 码力 | 6123 页 | 107.24 MB | 1 年前3TiDB v7.5 Documentation
statements, it is recommended to use ORM framework for development, such as SQLAlchemy, Peewee, and Django ORM. It can help you: • Reduce boilerplate code for managing connections and transactions. • Manipulate statements, it is recommended to use ORM framework for development, such as SQLAlchemy, Peewee, and Django ORM. It can help you: • Reduce boilerplate code for managing connections and transactions. • Manipulate statements, it is recommended to use ORM framework for development, such as SQLAlchemy, Peewee, and Django ORM. It can help you: • Reduce boilerplate code for managing connections and transactions. • Manipulate0 码力 | 6020 页 | 106.82 MB | 1 年前3
共 32 条
- 1
- 2
- 3
- 4