mirror of
https://github.com/enpaul/peewee-plus.git
synced 2025-10-29 07:40:11 +00:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
c71b205998
|
2
.github/workflows/ci.yaml
vendored
2
.github/workflows/ci.yaml
vendored
@@ -24,8 +24,6 @@ jobs:
|
|||||||
toxenv: py310
|
toxenv: py310
|
||||||
- version: "3.11"
|
- version: "3.11"
|
||||||
toxenv: py311
|
toxenv: py311
|
||||||
- version: "3.12"
|
|
||||||
toxenv: py312
|
|
||||||
fail-fast: true
|
fail-fast: true
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
|
|||||||
18
README.md
18
README.md
@@ -49,12 +49,11 @@ import peewee_plus
|
|||||||
|
|
||||||
### Constants
|
### Constants
|
||||||
|
|
||||||
`SQLITE_DEFAULT_PRAGMAS` - The default pragmas to use with an SQLite database connection,
|
| `SQLITE_DEFAULT_PRAGMAS` | The default pragmas to use with an SQLite database
|
||||||
taken directly from the
|
connection, taken directly from the
|
||||||
[Peewee docs](http://docs.peewee-orm.com/en/latest/peewee/database.html#recommended-settings).
|
[Peewee docs](http://docs.peewee-orm.com/en/latest/peewee/database.html#recommended-settings)
|
||||||
|
| | `SQLITE_DEFAULT_VARIABLE_LIMIT` | The maximum number of variables an SQL query can use
|
||||||
`SQLITE_DEFAULT_VARIABLE_LIMIT` - The maximum number of variables an SQL query can use
|
when using SQLite |
|
||||||
when using SQLite
|
|
||||||
|
|
||||||
### Functions
|
### Functions
|
||||||
|
|
||||||
@@ -68,8 +67,8 @@ without creating nested transactions
|
|||||||
### Classes
|
### Classes
|
||||||
|
|
||||||
`PathField` - A Peewee database field for storing
|
`PathField` - A Peewee database field for storing
|
||||||
[Pathlib](https://docs.python.org/3/library/pathlib.html) objects, optionally relative to
|
[pathlib.Path](https://docs.python.org/3/library/pathlib.html#pathlib.Path) objects,
|
||||||
a runtime value.
|
optionally relative to a runtime value.
|
||||||
|
|
||||||
`PrecisionFloatField` - A Peewee database field for storing floats while specifying the
|
`PrecisionFloatField` - A Peewee database field for storing floats while specifying the
|
||||||
[MySQL precision parameters](https://dev.mysql.com/doc/refman/8.0/en/floating-point-types.html)
|
[MySQL precision parameters](https://dev.mysql.com/doc/refman/8.0/en/floating-point-types.html)
|
||||||
@@ -77,7 +76,8 @@ a runtime value.
|
|||||||
|
|
||||||
`JSONField` - A Peewee database field for storing arbitrary JSON-serializable data
|
`JSONField` - A Peewee database field for storing arbitrary JSON-serializable data
|
||||||
|
|
||||||
`EnumField` - A Peewee database field for storing Enums by name
|
`EnumField` - A Peewee database field for storing
|
||||||
|
[`enum.Enum`](https://docs.python.org/3/library/enum.html#enum.Enum) objects by name
|
||||||
|
|
||||||
`TimedeltaField` A Peewee database field for natively storing
|
`TimedeltaField` A Peewee database field for natively storing
|
||||||
[`datetime.timedelta`](https://docs.python.org/3/library/datetime.html#datetime.timedelta)
|
[`datetime.timedelta`](https://docs.python.org/3/library/datetime.html#datetime.timedelta)
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ import peewee
|
|||||||
|
|
||||||
|
|
||||||
__title__ = "peewee-plus"
|
__title__ = "peewee-plus"
|
||||||
__version__ = "1.3.1"
|
__version__ = "1.3.0"
|
||||||
__license__ = "MIT"
|
__license__ = "MIT"
|
||||||
__summary__ = "Various extensions, helpers, and utilities for Peewee"
|
__summary__ = "Various extensions, helpers, and utilities for Peewee"
|
||||||
__url__ = "https://github.com/enpaul/peewee-plus/"
|
__url__ = "https://github.com/enpaul/peewee-plus/"
|
||||||
|
|||||||
1379
poetry.lock
generated
1379
poetry.lock
generated
File diff suppressed because it is too large
Load Diff
@@ -1,6 +1,6 @@
|
|||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "peewee-plus"
|
name = "peewee-plus"
|
||||||
version = "1.3.1"
|
version = "1.3.0"
|
||||||
description = "Various extensions, helpers, and utilities for Peewee"
|
description = "Various extensions, helpers, and utilities for Peewee"
|
||||||
authors = ["Ethan Paul <24588726+enpaul@users.noreply.github.com>"]
|
authors = ["Ethan Paul <24588726+enpaul@users.noreply.github.com>"]
|
||||||
repository = "https://github.com/enpaul/peewee-plus/"
|
repository = "https://github.com/enpaul/peewee-plus/"
|
||||||
@@ -22,7 +22,6 @@ classifiers = [
|
|||||||
"Programming Language :: Python :: 3.9",
|
"Programming Language :: Python :: 3.9",
|
||||||
"Programming Language :: Python :: 3.10",
|
"Programming Language :: Python :: 3.10",
|
||||||
"Programming Language :: Python :: 3.11",
|
"Programming Language :: Python :: 3.11",
|
||||||
"Programming Language :: Python :: 3.12",
|
|
||||||
"Programming Language :: Python :: Implementation :: CPython",
|
"Programming Language :: Python :: Implementation :: CPython",
|
||||||
"Topic :: Database",
|
"Topic :: Database",
|
||||||
"Typing :: Typed"
|
"Typing :: Typed"
|
||||||
@@ -42,8 +41,6 @@ ruamel-yaml = {version = "^0.17.21", python = "^3.10"}
|
|||||||
#
|
#
|
||||||
# https://github.com/python-poetry/poetry-plugin-export/issues/176
|
# https://github.com/python-poetry/poetry-plugin-export/issues/176
|
||||||
virtualenv = ">=20.15,<20.16"
|
virtualenv = ">=20.15,<20.16"
|
||||||
setuptools = {version = "^68.2.2", python = "^3.12"}
|
|
||||||
pip = {version = "^23.2.1", python = "^3.12"}
|
|
||||||
|
|
||||||
[tool.poetry.group.ci.dependencies]
|
[tool.poetry.group.ci.dependencies]
|
||||||
poetry = "^1.4.2"
|
poetry = "^1.4.2"
|
||||||
|
|||||||
5
tox.ini
5
tox.ini
@@ -1,6 +1,6 @@
|
|||||||
[tox]
|
[tox]
|
||||||
envlist =
|
envlist =
|
||||||
py{37,38,39,310,311,312}
|
py{37,38,39,310,311}
|
||||||
static
|
static
|
||||||
static-tests
|
static-tests
|
||||||
security
|
security
|
||||||
@@ -19,9 +19,6 @@ commands =
|
|||||||
--cov-config {toxinidir}/.coveragerc \
|
--cov-config {toxinidir}/.coveragerc \
|
||||||
--cov-report term-missing
|
--cov-report term-missing
|
||||||
|
|
||||||
[testenv:.package]
|
|
||||||
basepython = python3.10
|
|
||||||
|
|
||||||
[testenv:static]
|
[testenv:static]
|
||||||
description = Static formatting and quality enforcement
|
description = Static formatting and quality enforcement
|
||||||
basepython = python3.10
|
basepython = python3.10
|
||||||
|
|||||||
Reference in New Issue
Block a user