Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for peeveen (0.12 sec)

  1. docs_src/sql_databases_peewee/sql_app/models.py

    import peewee
    
    from .database import db
    
    
    class User(peewee.Model):
        email = peewee.CharField(unique=True, index=True)
        hashed_password = peewee.CharField()
        is_active = peewee.BooleanField(default=True)
    
        class Meta:
            database = db
    
    
    class Item(peewee.Model):
        title = peewee.CharField(index=True)
        description = peewee.CharField(index=True)
        owner = peewee.ForeignKeyField(User, backref="items")
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Mar 26 19:09:53 UTC 2020
    - 465 bytes
    - Viewed (0)
  2. docs_src/sql_databases_peewee/sql_app/database.py

    from contextvars import ContextVar
    
    import peewee
    
    DATABASE_NAME = "test.db"
    db_state_default = {"closed": None, "conn": None, "ctx": None, "transactions": None}
    db_state = ContextVar("db_state", default=db_state_default.copy())
    
    
    class PeeweeConnectionState(peewee._ConnectionState):
        def __init__(self, **kwargs):
            super().__setattr__("_state", db_state)
            super().__init__(**kwargs)
    
        def __setattr__(self, name, value):
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Mar 26 19:09:53 UTC 2020
    - 662 bytes
    - Viewed (0)
  3. docs_src/sql_databases_peewee/sql_app/schemas.py

    from typing import Any, List, Union
    
    import peewee
    from pydantic import BaseModel
    from pydantic.utils import GetterDict
    
    
    class PeeweeGetterDict(GetterDict):
        def get(self, key: Any, default: Any = None):
            res = getattr(self._obj, key, default)
            if isinstance(res, peewee.ModelSelect):
                return list(res)
            return res
    
    
    class ItemBase(BaseModel):
        title: str
        description: Union[str, None] = None
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat May 14 11:59:59 UTC 2022
    - 868 bytes
    - Viewed (0)
  4. fess-crawler/src/main/resources/org/codelibs/fess/crawler/mime/tika-mimetypes.xml

        <root-XML localName="PremiereData"/>
        <sub-class-of type="application/xml"/>
      </mime-type>
    
      <mime-type type="image/vnd.cns.inf2"/>
    
      <!-- credit: peeveen's tika-dgn-detector https://github.com/peeveen/tika-dgn-detector/ -->
      <mime-type type="image/vnd.dgn">
        <glob pattern="*.dgn" />
        <glob pattern="*.dgnlib" />
        <glob pattern="*.cel" />
      </mime-type>
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Sep 21 06:46:43 UTC 2023
    - 298.5K bytes
    - Viewed (0)
  5. docs/zh/docs/tutorial/sql-databases.md

    它可能有一个像`"Arquilian"`(一种业务逻辑)。
    
    当您尝试从您的宠物对象访问它时,ORM 将完成所有工作以从相应的表*所有者那里再获取信息。*
    
    常见的 ORM 例如:Django-ORM(Django 框架的一部分)、SQLAlchemy ORM(SQLAlchemy 的一部分,独立于框架)和 Peewee(独立于框架)等。
    
    在这里,我们将看到如何使用**SQLAlchemy ORM**。
    
    以类似的方式,您也可以使用任何其他 ORM。
    
    /// tip
    
    在文档中也有一篇使用 Peewee 的等效的文章。
    
    ///
    
    ## 文件结构
    
    对于这些示例,假设您有一个名为的目录`my_super_project`,其中包含一个名为的子目录`sql_app`,其结构如下:
    
    ```
    .
    └── sql_app
        ├── __init__.py
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 27.1K bytes
    - Viewed (0)
  6. docs/en/docs/release-notes.md

    * Fix Peewee `contextvars` handling in docs: [SQL (Relational) Databases with Peewee](https://fastapi.tiangolo.com/advanced/sql-databases-peewee/). PR [#879](https://github.com/tiangolo/fastapi/pull/879).
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Nov 01 11:25:57 UTC 2024
    - 460.3K bytes
    - Viewed (0)
  7. okhttp/src/main/resources/okhttp3/internal/publicsuffix/PublicSuffixDatabase.gz

    paroch.k12.ma.us pars parti.se partners parts party pasadena.museum passagens passenger-association.aero patria.bo pavia.it pay pb.ao pb.gov.br pb.leg.br pc.it pc.pl pccw pcloud.host pd.it pdns.page pe pe.ca pe.gov.br pe.it pe.kr pe.leg.br pecori.jp peewee.jp penne.jp penza.su pepper.jp per.la per.nf per.sg perma.jp perso.ht perso.sn perso.tn perspecta.cloud perugia.it pesaro-urbino.it pesarourbino.it pescara.it pet pf pfizer pg.in pg.it pgafan.net pgfog.com ph pharmacien.fr pharmaciens.km pharmacy...
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Dec 20 23:27:07 UTC 2023
    - 40.4K bytes
    - Viewed (1)
  8. okhttp/src/test/resources/okhttp3/internal/publicsuffix/public_suffix_list.dat

    lovepop.jp
    lovesick.jp
    main.jp
    mods.jp
    mond.jp
    mongolian.jp
    moo.jp
    namaste.jp
    nikita.jp
    nobushi.jp
    noor.jp
    oops.jp
    parallel.jp
    parasite.jp
    pecori.jp
    peewee.jp
    penne.jp
    pepper.jp
    perma.jp
    pigboat.jp
    pinoko.jp
    punyu.jp
    pupu.jp
    pussycat.jp
    pya.jp
    raindrop.jp
    readymade.jp
    sadist.jp
    schoolbus.jp
    secret.jp
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Dec 20 23:27:07 UTC 2023
    - 240.3K bytes
    - Viewed (0)
Back to top