-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #104 from tarsil/feature/annotations
Add API Reference
- Loading branch information
Showing
20 changed files
with
268 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# **`Database`** class | ||
|
||
|
||
::: saffier.Database | ||
options: | ||
filters: | ||
- "!^model_config" | ||
- "!^__slots__" | ||
- "!^__getattr__" | ||
- "!^__aenter__" | ||
- "!^__aexit__" | ||
- "!^SUPPORTED_BACKENDS" | ||
- "!^DIRECT_URL_SCHEME" | ||
- "!^MANDATORY_FIELDS" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# **`BaseField`** class | ||
|
||
|
||
::: saffier.core.db.fields.base.Field | ||
options: | ||
filters: | ||
- "!^model_config" | ||
- "!^__slots__" | ||
- "!^__getattr__" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# **`ForeignKey`** class | ||
|
||
|
||
::: saffier.ForeignKey | ||
options: | ||
filters: | ||
- "!^_type" | ||
- "!^model_config" | ||
- "!^__slots__" | ||
- "!^__getattr__" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# API Reference | ||
|
||
Here lies all the useful API references for the classes, functions and attributes of all | ||
parts you can use in your application development. | ||
|
||
If you want to start with **Edgy** you should always [start here](https://edgy.tarsild.io/edgy). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# **`Manager`** class | ||
|
||
|
||
::: saffier.Manager | ||
options: | ||
filters: | ||
- "!^model_config" | ||
- "!^__slots__" | ||
- "!^__getattr__" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# **`ManyToMany`** class | ||
|
||
|
||
::: saffier.ManyToManyField | ||
options: | ||
filters: | ||
- "!^model_config" | ||
- "!^__slots__" | ||
- "!^__getattr__" | ||
- "!^_type" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# **`Model`** class | ||
|
||
|
||
::: saffier.Model | ||
options: | ||
filters: | ||
- "!^model_config" | ||
- "!^__dict__" | ||
- "!^__repr__" | ||
- "!^__str__" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# **`OneToOne`** class | ||
|
||
|
||
::: saffier.OneToOneField | ||
options: | ||
filters: | ||
- "!^_type" | ||
- "!^model_config" | ||
- "!^__slots__" | ||
- "!^__getattr__" | ||
- "!^__new__" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# **`QuerySet`** class | ||
|
||
::: saffier.QuerySet | ||
options: | ||
filters: | ||
- "!^model_config" | ||
- "!^__slots__" | ||
- "!^__await__" | ||
- "!^__class_getitem__" | ||
- "!^__get__" | ||
- "!^ESCAPE_CHARACTERS" | ||
- "!^m2m_related" | ||
- "!^pkname" | ||
- "!^_m2m_related" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# **`ReflectModel`** class | ||
|
||
|
||
::: saffier.ReflectModel | ||
options: | ||
filters: | ||
- "!^model_config" | ||
- "!^__dict__" | ||
- "!^__repr__" | ||
- "!^__str__" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# **`Registry`** class | ||
|
||
|
||
::: saffier.Registry | ||
options: | ||
filters: | ||
- "!^model_config" | ||
- "!^__slots__" | ||
- "!^__getattr__" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# **`Schema`** class | ||
|
||
|
||
::: saffier.core.connection.schemas.Schema | ||
options: | ||
filters: | ||
- "!^model_config" | ||
- "!^__slots__" | ||
- "!^__getattr__" | ||
- "!^__aenter__" | ||
- "!^__aexit__" | ||
- "!^SUPPORTED_BACKENDS" | ||
- "!^DIRECT_URL_SCHEME" | ||
- "!^MANDATORY_FIELDS" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# **`Signal`** class | ||
|
||
|
||
::: saffier.Signal | ||
options: | ||
filters: | ||
- "!^model_config" | ||
- "!^__slots__" | ||
- "!^__getattr__" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
--- | ||
hide: | ||
- navigation | ||
--- | ||
|
||
# Release Notes | ||
|
||
## 1.0.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
--- | ||
hide: | ||
- navigation | ||
--- | ||
|
||
# Saffier | ||
|
||
<p align="center"> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,31 @@ | ||
from databasez import Database as Database # noqa | ||
from databasez import Database as Databasez # noqa | ||
from databasez import DatabaseURL as DatabaseURL # noqa | ||
|
||
|
||
class Database(Databasez): | ||
""" | ||
An abstraction on the top of the EncodeORM databases.Database object. | ||
This object allows to pass also a configuration dictionary in the format of | ||
```python | ||
DATABASEZ_CONFIG = { | ||
"connection": { | ||
"credentials": { | ||
"scheme": 'sqlite', "postgres"... | ||
"host": ..., | ||
"port": ..., | ||
"user": ..., | ||
"password": ..., | ||
"database": ..., | ||
"options": { | ||
"driver": ... | ||
"ssl": ... | ||
} | ||
} | ||
} | ||
} | ||
``` | ||
""" | ||
|
||
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters