peewee
最新
安裝與測試
快速入門
範例應用程式
互動式使用 Peewee
貢獻
資料庫
模型與欄位
查詢
查詢運算子
關係與聯結
API 文件
SQLite 擴充功能
Playhouse,Peewee 的擴充功能
查詢範例
查詢建構器
技巧
3.0 版的變更
peewee
索引
在 GitHub 上編輯
索引
_
|
A
|
B
|
C
|
D
|
E
|
F
|
G
|
H
|
I
|
J
|
K
|
L
|
M
|
N
|
O
|
P
|
Q
|
R
|
S
|
T
|
U
|
V
|
W
|
Y
|
Z
_
__add__() (BaseTable 方法)
(SelectQuery 方法)
__and__() (BaseTable 方法)
(BigBitField 方法)
(SelectQuery 方法)
__contains__() (KeyValue 方法)
__delitem__() (BigBitField 方法)
(KeyValue 方法)
__enter__() (Database 方法)
__getattr__() (Entity 方法)
__getitem__() (BaseQuery 方法)
(BigBitField 方法)
(DataSet 方法)
(JSONField 方法)
(JSONPath 方法)
(KeyValue 方法)
__invert__() (ColumnBase 方法)
__iter__() (BaseQuery 方法)
(BigBitField 方法)
(Model 方法)
__len__() (BaseQuery 方法)
(BigBitField 方法)
(KeyValue 方法)
(Model 方法)
__mul__() (BaseTable 方法)
__or__() (BaseTable 方法)
(BigBitField 方法)
(SelectQuery 方法)
__setitem__() (AliasManager 方法)
(BigBitField 方法)
(KeyValue 方法)
__sub__() (BaseTable 方法)
(SelectQuery 方法)
__xor__() (BigBitField 方法)
_WriteQuery (內建模組類別)
A
add() (AliasManager 方法)
(ManyToManyField 方法)
add_column() (SchemaMigrator 方法)
add_column_default() (SchemaMigrator 方法)
add_constraint() (SchemaMigrator 方法)
add_index() (Model 類別方法)
(SchemaMigrator 方法)
add_not_null() (SchemaMigrator 方法)
add_unique() (SchemaMigrator 方法)
aggregate() (SqliteDatabase 方法)
Alias (內建模組類別)
alias() (Alias 方法)
(ColumnBase 方法)
(Model 類別方法)
(Source 方法)
(Window 方法)
AliasManager (內建模組類別)
all() (Table 方法)
alter_column_type() (SchemaMigrator 方法)
ancestors() (BaseClosureTable 方法)
append() (JSONField 方法)
(JSONPath 方法)
APSWDatabase (內建模組類別)
ArrayField (內建模組類別)
as_groups() (Window 方法)
as_range() (Window 方法)
as_rowcount() (Insert 方法)
as_rows() (Window 方法)
Asc()
內建函式
asc() (ColumnBase 方法)
AsIs()
內建函式
assert_query_count()
內建函式
atomic() (Database 方法)
(MySQLDatabase 方法)
(PostgresqlDatabase 方法)
(SqliteDatabase 方法)
attach() (SqliteDatabase 方法)
attach_callback() (Proxy 方法)
autocommit (CSqliteExtDatabase 屬性)
AutoField (內建模組類別)
AutoIncrementField (內建模組類別)
avgrange()
內建函式
avgtdiff()
內建函式
B
backup() (CSqliteExtDatabase 方法)
backup_to_file() (CSqliteExtDatabase 方法)
BareField (內建模組類別)
BaseClosureTable (內建模組類別)
BaseQuery (內建模組類別)
BaseTable (內建模組類別)
batch_commit() (Database 方法)
begin() (Database 方法)
BigAutoField (內建模組類別)
BigBitField (內建模組類別)
BigIntegerField (內建模組類別)
BinaryJSONField (內建模組類別)
BinaryUUIDField (內建模組類別)
bind() (BaseQuery 方法)
(Database 方法)
(Model 類別方法)
(Table 方法)
bind_ctx() (Database 方法)
(Model 類別方法)
(Table 方法)
BitField (內建模組類別)
Blob (內建模組類別)
blob_open() (CSqliteExtDatabase 方法)
BlobField (內建模組類別)
bm25() (FTS5Model 類別方法)
(FTSModel 類別方法)
bm25f() (FTSModel 類別方法)
BooleanField (內建模組類別)
內建函式
Asc()
AsIs()
assert_query_count()
avgrange()
avgtdiff()
Case()
Check()
chunked()
clear_settings()
clear_toggles()
ClosureTable()
CommaNodeList()
connect()
damerau_levenshtein_dist()
date_series()
Desc()
dict_to_model()
duration()
EnclosedNodeList()
file_ext()
file_read()
fn()
gauss_distribution()
generate_models()
get_object_or_404()
gunzip()
gzip()
hostname()
humandelta()
if_then_else()
levenshtein_dist()
Match()
,
[1]
median()
migrate()
minrange()
mintdiff()
mode()
model_to_dict()
object_list()
parse()
prefetch()
print_model()
print_table_sql()
randomrange()
range()
regex_search()
register_database()
resolve_multimodel_query()
run_transaction()
,
[1]
ServerSide()
setting()
sqrt()
str_dist()
strip_chars()
strip_tz()
substr_count()
toggle()
tonumber()
update_model_from_dict()
bulk_create() (Model 類別方法)
bulk_update() (Model 類別方法)
C
cache_size (SqliteDatabase 屬性)
Case()
內建函式
Cast (內建模組類別)
cast() (ColumnBase 方法)
changes() (CSqliteExtDatabase 方法)
CharField (內建模組類別)
Check()
內建函式
children() (JSONField 方法)
(JSONPath 方法)
chunked()
內建函式
clear() (BigBitField 方法)
(KeyValue 方法)
(ManyToManyField 方法)
clear_bit() (BigBitField 方法)
clear_settings()
內建函式
clear_toggles()
內建函式
close() (Blob 方法)
(Database 方法)
(DataSet 方法)
close_all() (PooledDatabase 方法)
close_idle() (PooledDatabase 方法)
close_stale() (PooledDatabase 方法)
ClosureTable()
內建函式
CockroachDatabase (內建模組類別)
,
[1]
coerce() (Field 方法)
(Function 方法)
collate() (Ordering 方法)
collation() (SqliteDatabase 方法)
Column (內建模組類別)
column (Field 屬性)
ColumnBase (內建模組類別)
columns (Table 屬性)
(TableFunction 屬性)
columns() (Select 方法)
(ValuesList 方法)
CommaNodeList()
內建函式
commit() (Database 方法)
CompositeKey (內建模組類別)
CompoundSelectQuery (內建模組類別)
CompressedField (內建模組類別)
concat() (BinaryJSONField 方法)
conflict_constraint() (OnConflict 方法)
conflict_target() (OnConflict 方法)
conflict_where() (OnConflict 方法)
connect()
內建函式
connect() (Database 方法)
(DataSet 方法)
(Signal 方法)
connection() (Database 方法)
connection_context() (Database 方法)
contained_by() (BinaryJSONField 方法)
contains() (ArrayField 方法)
(BinaryJSONField 方法)
(HStoreField 方法)
contains_all() (BinaryJSONField 方法)
contains_any() (ArrayField 方法)
(BinaryJSONField 方法)
(HStoreField 方法)
Context (內建模組類別)
copy() (Node 靜態方法)
count (count_queries 屬性)
count() (SelectBase 方法)
count_queries (內建模組類別)
create() (Model 類別方法)
create_all() (SchemaManager 方法)
create_foreign_key() (SchemaManager 方法)
create_index() (Table 方法)
create_indexes() (SchemaManager 方法)
create_sequence() (SchemaManager 方法)
create_table() (Model 類別方法)
(SchemaManager 方法)
create_tables() (Database 方法)
CSqliteExtDatabase (內建模組類別)
CTE (內建模組類別)
cte() (Query 方法)
CURRENT_ROW (Window 屬性)
cursor() (Database 方法)
D
damerau_levenshtein_dist()
內建函式
Database (內建模組類別)
DatabaseProxy (內建模組類別)
DataSet (內建模組類別)
date_series()
內建函式
DateField (內建模組類別)
DateTimeField (內建模組類別)
DateTimeTZField (內建模組類別)
day (DateField 屬性)
(DateTimeField 屬性)
db_value() (Field 方法)
DecimalField (內建模組類別)
DeferredForeignKey (內建模組類別)
DeferredThroughModel (內建模組類別)
defined() (HStoreField 方法)
Delete (內建模組類別)
delete() (HStoreField 方法)
(Model 類別方法)
(Table 方法)
,
[1]
delete_by_id() (Model 類別方法)
delete_instance() (Model 方法)
dependencies() (Model 方法)
depth (BaseClosureTable 屬性)
Desc()
內建函式
desc() (ColumnBase 方法)
descendants() (BaseClosureTable 方法)
detach() (SqliteDatabase 方法)
dict_to_model()
內建函式
dicts() (BaseQuery 方法)
dirty_fields (Model 屬性)
disconnect() (Signal 方法)
distinct() (Select 方法)
DocIDField (內建模組類別)
DoubleField (內建模組類別)
DQ (內建模組類別)
drop_all() (SchemaManager 方法)
drop_column() (SchemaMigrator 方法)
drop_column_default() (SchemaMigrator 方法)
drop_constraint() (SchemaMigrator 方法)
drop_index() (SchemaMigrator 方法)
drop_indexes() (SchemaManager 方法)
drop_not_null() (SchemaMigrator 方法)
drop_sequence() (SchemaManager 方法)
drop_table() (Model 類別方法)
(SchemaManager 方法)
drop_tables() (Database 方法)
duration()
內建函式
E
EnclosedNodeList()
內建函式
Entity (內建模組類別)
except_() (SelectQuery 方法)
exclude() (Window 方法)
EXCLUDED (內建模組類別)
execute() (BaseQuery 方法)
(Database 方法)
execute_sql() (Database 方法)
exists() (HStoreField 方法)
(SelectBase 方法)
Expression (內建模組類別)
expression() (hybrid_method 方法)
extends() (Window 方法)
extract() (JSONField 方法)
,
[1]
extract_date() (Database 方法)
extract_json() (JSONField 方法)
extract_text() (JSONField 方法)
F
Field (內建模組類別)
file_ext()
內建函式
file_read()
內建函式
filter() (Function 方法)
(Model 類別方法)
(ModelSelect 方法)
find() (Table 方法)
find_one() (Table 方法)
first() (SelectBase 方法)
FixedCharField (內建模組類別)
flag() (BitField 方法)
FloatField (內建模組類別)
fn()
內建函式
following() (Window 靜態方法)
for_update() (Select 方法)
foreign_keys (SqliteDatabase 屬性)
ForeignKeyField (內建模組類別)
freeze() (DataSet 方法)
(Table 方法)
from_() (Select 方法)
(Update 方法)
from_database() (Introspector 類別方法)
fts5_installed() (FTS5Model 類別方法)
FTS5Model (內建模組類別)
FTSModel (內建模組類別)
func() (SqliteDatabase 方法)
Function (內建模組類別)
G
gauss_distribution()
內建函式
generate_models()
內建函式
generate_models() (Introspector 方法)
get() (AliasManager 方法)
(KeyValue 方法)
(Model 類別方法)
(SelectBase 方法)
get_by_id() (Model 類別方法)
get_columns() (Database 方法)
get_foreign_keys() (Database 方法)
get_id() (Model 方法)
get_indexes() (Database 方法)
get_object_list() (PaginatedQuery 方法)
get_object_or_404()
內建函式
get_or_create() (Model 類別方法)
get_or_none() (Model 類別方法)
get_page() (PaginatedQuery 方法)
get_page_count() (PaginatedQuery 方法)
get_primary_keys() (資料庫方法)
get_queries() (count_queries 方法)
get_tables() (資料庫方法)
get_through_model() (ManyToManyField 方法)
get_views() (資料庫方法)
GROUP (視窗屬性)
group_by() (Select 方法)
group_by_extend() (Select 方法)
GROUPS (視窗屬性)
gunzip()
內建函式
gzip()
內建函式
H
has_key() (BinaryJSONField 方法)
having() (Select 方法)
highlight() (SearchField 方法)
hostname()
內建函式
hour (DateTimeField 屬性)
(TimeField 屬性)
HStoreField (內建類別)
humandelta()
內建函式
hybrid_method (內建類別)
hybrid_property (內建類別)
I
id (BaseClosureTable 屬性)
IdentityField (內建類別)
if_then_else()
內建函式
in_transaction() (資料庫方法)
Index (內建類別)
index() (模型類別方法)
init() (資料庫方法)
initialize() (Proxy 方法)
(TableFunction 方法)
Insert (內建類別)
insert() (JSONField 方法)
(JSONPath 方法)
(Model 類別方法)
(表格方法)
,
[1]
insert_from() (模型類別方法)
insert_many() (模型類別方法)
IntegerField (內建類別)
intersect() (SelectQuery 方法)
IntervalField (內建類別)
Introspector (內建類別)
IPField (內建類別)
is_alias() (Node 方法)
is_closed() (資料庫方法)
is_dirty() (模型方法)
is_set() (BigBitField 方法)
items() (HStoreField 方法)
(KeyValue 方法)
iterate() (TableFunction 方法)
iterator() (BaseQuery 方法)
J
Join (內建類別)
join() (ModelSelect 方法)
(Select 方法)
(Source 方法)
join_from() (ModelSelect 方法)
journal_mode (SqliteDatabase 屬性)
journal_size_limit (SqliteDatabase 屬性)
json_type() (JSONField 方法)
(JSONPath 方法)
JSONBField (內建類別)
JSONBPath (內建類別)
JSONField (內建類別)
,
[1]
,
[2]
JSONPath (內建類別)
K
keys() (HStoreField 方法)
(KeyValue 方法)
KeyValue (內建類別)
L
last_insert_id() (資料庫方法)
left_outer_join() (Source 方法)
length() (JSONField 方法)
(JSONPath 方法)
levenshtein_dist()
內建函式
limit() (Query 方法)
literal() (Context 方法)
load_extension() (SqliteDatabase 方法)
LSMTable (內建類別)
lucene() (FTSModel 類別方法)
M
manual_close() (PooledDatabase 方法)
manual_commit() (資料庫方法)
ManyToManyField (內建類別)
map_models() (SubclassAwareMetadata 方法)
MariaDBConnectorDatabase (內建類別)
Match()
內建函式
,
[1]
match() (FTSModel 類別方法)
(SearchField 方法)
(TSVectorField 方法)
median()
內建函式
Metadata (內建類別)
migrate()
內建函式
minrange()
內建函式
mintdiff()
內建函式
minute (DateTimeField 屬性)
(TimeField 屬性)
mmap_size (SqliteDatabase 屬性)
mode()
內建函式
Model (內建類別)
model (Field 屬性)
model_class (Table 屬性)
model_graph() (Metadata 方法)
model_to_dict()
內建函式
ModelAlias (內建類別)
ModelIndex (內建類別)
ModelSelect (內建類別)
month (DateField 屬性)
(DateTimeField 屬性)
MySQLConnectorDatabase (內建類別)
MySQLDatabase (內建類別)
MySQLMigrator (內建類別)
N
name (Field 屬性)
(TableFunction 屬性)
namedtuples() (BaseQuery 方法)
Negated (內建類別)
NO_OTHERS (視窗屬性)
Node (內建類別)
NodeList (內建類別)
O
object_list()
內建函式
objects() (BaseQuery 方法)
(ModelSelect 方法)
offset() (Query 方法)
on() (Join 方法)
on_commit() (CSqliteExtDatabase 方法)
on_conflict() (Insert 方法)
on_conflict_ignore() (Insert 方法)
on_conflict_replace() (Insert 方法)
on_rollback() (CSqliteExtDatabase 方法)
on_update() (CSqliteExtDatabase 方法)
OnConflict (內建類別)
optimize() (FTSModel 類別方法)
order_by() (Query 方法)
order_by_extend() (Query 方法)
Ordering (內建類別)
orwhere() (Query 方法)
over() (Function 方法)
P
page_size (SqliteDatabase 屬性)
paginate() (Query 方法)
PaginatedQuery (內建類別)
params (TableFunction 屬性)
parentheses (Context 屬性)
parse()
內建函式
parse() (Context 方法)
peek() (SelectBase 方法)
PickleField (內建類別)
PooledCockroachDatabase (內建類別)
,
[1]
PooledDatabase (內建類別)
PooledMySQLDatabase (內建類別)
PooledPostgresqlDatabase (內建類別)
PooledPostgresqlExtDatabase (內建類別)
PooledSqliteDatabase (內建類別)
PooledSqliteExtDatabase (內建類別)
pop() (AliasManager 方法)
(KeyValue 方法)
PostgresqlDatabase (內建類別)
PostgresqlExtDatabase (內建類別)
PostgresqlMigrator (內建類別)
pragma() (SqliteDatabase 方法)
preceding() (Window 靜態方法)
prefetch()
內建函式
prefetch() (ModelSelect 方法)
preserve() (OnConflict 方法)
print_model()
內建函式
print_table_sql()
內建函式
Proxy (內建類別)
push() (AliasManager 方法)
python_value() (Field 方法)
(Function 方法)
Q
Query (內建類別)
query() (Context 方法)
(DataSet 方法)
R
random() (資料庫方法)
randomrange()
內建函式
RANGE (視窗屬性)
range()
內建函式
rank() (FTS5Model 類別方法)
(FTSModel 類別方法)
raw() (模型類別方法)
RawQuery (內建類別)
read() (Blob 方法)
read_uncommitted (SqliteDatabase 屬性)
rebuild() (FTSModel 類別方法)
regex_search()
內建函式
register() (TableFunction 類別方法)
register_aggregate() (SqliteDatabase 方法)
register_collation() (SqliteDatabase 方法)
register_database()
內建函式
register_function() (SqliteDatabase 方法)
register_module() (APSWDatabase 方法)
register_window_function() (SqliteDatabase 方法)
rekey() (SqlCipherDatabase 方法)
remove() (BinaryJSONField 方法)
(JSONField 方法)
(JSONPath 方法)
(ManyToManyField 方法)
rename_column() (SchemaMigrator 方法)
rename_table() (SchemaMigrator 方法)
reopen() (Blob 方法)
replace() (JSONField 方法)
(JSONPath 方法)
(Model 類別方法)
(Table 方法)
replace_many() (模型類別方法)
resolve_multimodel_query()
內建函式
returning() (_WriteQuery 方法)
rollback() (資料庫方法)
root (BaseClosureTable 屬性)
RowIDField (內建類別)
,
[1]
,
[2]
ROWS (視窗屬性)
rows_affected() (資料庫方法)
run_transaction()
內建函式
,
[1]
run_transaction() (CockroachDatabase 方法)
,
[1]
S
safe() (Index 方法)
save() (模型方法)
savepoint() (資料庫方法)
scalar() (SelectBase 方法)
SchemaManager (內建類別)
SchemaMigrator (內建類別)
scope (Context 屬性)
scope_column() (Context 方法)
scope_cte() (Context 方法)
scope_normal() (Context 方法)
scope_source() (Context 方法)
scope_values() (Context 方法)
search() (FTS5Model 類別方法)
(FTSModel 類別方法)
search_bm25() (FTS5Model 類別方法)
(FTSModel 類別方法)
search_bm25f() (FTSModel 類別方法)
search_lucene() (FTSModel 類別方法)
SearchField (內建類別)
second (DateTimeField 屬性)
(TimeField 屬性)
seek() (Blob 方法)
Select (內建類別)
select() (模型類別方法)
(Select 方法)
(Source 方法)
(Table 方法)
select_extend() (Select 方法)
select_from() (CTE 方法)
(SelectQuery 方法)
SelectBase (內建類別)
SelectQuery (內建類別)
send() (Signal 方法)
sequence_exists() (資料庫方法)
ServerSide()
內建函式
session_commit() (資料庫方法)
session_rollback() (資料庫方法)
session_start() (資料庫方法)
set() (JSONField 方法)
(JSONPath 方法)
set_bit() (BigBitField 方法)
set_by_id() (模型類別方法)
set_database() (Metadata 方法)
set_search_path() (PostgresqlMigrator 方法)
set_table_name() (Metadata 方法)
set_time_zone() (PostgresqlDatabase 方法)
setting()
內建函式
siblings() (BaseClosureTable 方法)
Signal (內建類別)
slice() (HStoreField 方法)
SmallIntegerField (內建類別)
snippet() (SearchField 方法)
Source (內建類別)
SQL (內建類別)
sql() (BaseQuery 方法)
(Context 方法)
SqlCipherDatabase (內建類別)
SqliteDatabase (內建類別)
SqliteExtDatabase (內建類別)
SqliteMigrator (內建類別)
sqrt()
內建函式
State (內建類別)
str_dist()
內建函式
strip_chars()
內建函式
strip_tz()
內建函式
SubclassAwareMetadata (內建類別)
subquery (Context 屬性)
substr_count()
內建函式
switch() (ModelSelect 方法)
synchronous (SqliteDatabase 屬性)
T
Table (內建類別)
,
[1]
table (Metadata 屬性)
table_exists() (資料庫方法)
(Model 類別方法)
table_function() (SqliteDatabase 方法)
TableFunction (內建類別)
tables (DataSet 屬性)
tell() (Blob 方法)
TextField (內建類別)
thaw() (DataSet 方法)
(Table 方法)
ThreadSafeDatabaseMetadata (內建類別)
through_model (ManyToManyField 屬性)
TIES (視窗屬性)
TimeField (內建類別)
timeout (SqliteDatabase 屬性)
TimestampField (內建類別)
to_timestamp() (DateField 方法)
(DateTimeField 方法)
toggle()
內建函式
toggle_bit() (BigBitField 方法)
tonumber()
內建函式
transaction() (資料庫方法)
(DataSet 方法)
(MySQLDatabase 方法)
(PostgresqlDatabase 方法)
(SqliteDatabase 方法)
tree() (JSONField 方法)
(JSONPath 方法)
truncate() (DateField 方法)
(DateTimeField 方法)
truncate_date() (資料庫方法)
truncate_table() (模型方法)
(SchemaManager 方法)
TSVectorField (內建類別)
Tuple (內建類別)
tuples() (BaseQuery 方法)
U
union() (SelectQuery 方法)
union_all() (CTE 方法)
(SelectQuery 方法)
unregister_aggregate() (SqliteDatabase 方法)
unregister_collation() (SqliteDatabase 方法)
unregister_function() (SqliteDatabase 方法)
unregister_module() (APSWDatabase 方法)
unregister_table_function() (SqliteDatabase 方法)
unwrap() (Node 方法)
Update (內建類別)
update() (HStoreField 方法)
(JSONField 方法)
(JSONPath 方法)
(KeyValue 方法)
(Model 類別方法)
(OnConflict 方法)
(表格方法)
,
[1]
update_model_from_dict()
內建函式
using() (Index 方法)
UUIDField (內建類別)
UUIDKeyField (內建類別)
,
[1]
V
Value (內建類別)
values() (HStoreField 方法)
(KeyValue 方法)
ValuesList (內建類別)
VirtualModel (內建類別)
VocabModel() (FTS5Model 類別方法)
W
wal_autocheckpoint (SqliteDatabase 屬性)
where() (Index 方法)
(OnConflict 方法)
(Query 方法)
Window (內建類別)
window() (Select 方法)
window_function() (SqliteDatabase 方法)
with_cte() (Query 方法)
write() (Blob 方法)
Y
year (DateField 屬性)
(DateTimeField 屬性)
Z
ZeroBlob (內建類別)
Read the Docs
v: 最新版本
版本
最新
3.15.3
3.6.0
3.5.0
3.4.0
3.3.0
3.2.0
3.1.0
3.0.0
2.10.2
2.0.2
1.0.0
0.9.7
下載
在 Read the Docs 上
專案首頁
建置