Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 225 for Database (0.32 sec)

  1. docs_src/sql_databases/sql_app_py310/tests/test_sql_app.py

    from fastapi.testclient import TestClient
    from sqlalchemy import create_engine
    from sqlalchemy.orm import sessionmaker
    
    from ..database import Base
    from ..main import app, get_db
    
    SQLALCHEMY_DATABASE_URL = "sqlite:///./test.db"
    
    engine = create_engine(
        SQLALCHEMY_DATABASE_URL, connect_args={"check_same_thread": False}
    )
    TestingSessionLocal = sessionmaker(autocommit=False, autoflush=False, bind=engine)
    
    
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jan 07 14:11:31 GMT 2022
    - 1.2K bytes
    - Viewed (0)
  2. docs/en/docs/project-generation.md

        - ๐Ÿงฐ [SQLModel](https://sqlmodel.tiangolo.com) for the Python SQL database interactions (ORM).
        - ๐Ÿ” [Pydantic](https://docs.pydantic.dev), used by FastAPI, for the data validation and settings management.
        - ๐Ÿ’พ [PostgreSQL](https://www.postgresql.org) as the SQL database.
    - ๐Ÿš€ [React](https://react.dev) for the frontend.
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Mar 21 21:12:21 GMT 2024
    - 1.8K bytes
    - Viewed (0)
  3. docs/LICENSE

         contents in a database in which You have Sui Generis Database
         Rights, then the database in which You have Sui Generis Database
         Rights (but not its individual contents) is Adapted Material; and
    
      c. You must comply with the conditions in Section 3(a) if You Share
         all or a substantial portion of the contents of the database.
    
    For the avoidance of doubt, this Section 4 supplements and does not
    Plain Text
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon May 10 16:50:06 GMT 2021
    - 18.2K bytes
    - Viewed (0)
  4. docs/en/docs/tutorial/encoder.md

    For example, if you need to store it in a database.
    
    For that, **FastAPI** provides a `jsonable_encoder()` function.
    
    ## Using the `jsonable_encoder`
    
    Let's imagine that you have a database `fake_db` that only receives JSON compatible data.
    
    For example, it doesn't receive `datetime` objects, as those are not compatible with JSON.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Oct 17 05:59:11 GMT 2023
    - 1.8K bytes
    - Viewed (0)
  5. 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")
    
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Mar 26 19:09:53 GMT 2020
    - 465 bytes
    - Viewed (0)
  6. docs/zh/docs/tutorial/sql-databases.md

    ---> 100%
    ```
    
    </div>
    
    ## ๅˆ›ๅปบ SQLAlchemy ้ƒจไปถ
    
    ่ฎฉๆˆ‘ไปฌ่ฝฌๅˆฐๆ–‡ไปถ`sql_app/database.py`ใ€‚
    
    ### ๅฏผๅ…ฅ SQLAlchemy ้ƒจไปถ
    
    ```Python hl_lines="1-3"
    {!../../../docs_src/sql_databases/sql_app/database.py!}
    ```
    
    ### ไธบ SQLAlchemy ๅฎšไน‰ๆ•ฐๆฎๅบ“ URLๅœฐๅ€
    
    ```Python hl_lines="5-6"
    {!../../../docs_src/sql_databases/sql_app/database.py!}
    ```
    
    ๅœจ่ฟ™ไธชไพ‹ๅญไธญ๏ผŒๆˆ‘ไปฌๆญฃๅœจโ€œ่ฟžๆŽฅโ€ๅˆฐไธ€ไธช SQLite ๆ•ฐๆฎๅบ“๏ผˆ็”จ SQLite ๆ•ฐๆฎๅบ“ๆ‰“ๅผ€ไธ€ไธชๆ–‡ไปถ๏ผ‰ใ€‚
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 27K bytes
    - Viewed (0)
  7. docs/em/docs/tutorial/sql-databases.md

    $ pip install sqlalchemy
    
    ---> 100%
    ```
    
    </div>
    
    ## โœ ๐Ÿ‡ธ๐Ÿ‡ฒ ๐Ÿ•
    
    โžก๏ธ ๐Ÿ”— ๐Ÿ“ `sql_app/database.py`.
    
    ### ๐Ÿ—„ ๐Ÿ‡ธ๐Ÿ‡ฒ ๐Ÿ•
    
    ```Python hl_lines="1-3"
    {!../../../docs_src/sql_databases/sql_app/database.py!}
    ```
    
    ### โœ ๐Ÿ’ฝ ๐Ÿ“› ๐Ÿ‡ธ๐Ÿ‡ฒ
    
    ```Python hl_lines="5-6"
    {!../../../docs_src/sql_databases/sql_app/database.py!}
    ```
    
    ๐Ÿ‘‰ ๐Ÿ–ผ, ๐Ÿ‘ฅ "๐Ÿ”—" ๐Ÿ—„ ๐Ÿ’ฝ (๐Ÿ“‚ ๐Ÿ“ โฎ๏ธ ๐Ÿ—„ ๐Ÿ’ฝ).
    
    ๐Ÿ“ ๐Ÿ”œ ๐Ÿ”Ž ๐ŸŽ ๐Ÿ“ ๐Ÿ“ `sql_app.db`.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 25.2K bytes
    - Viewed (1)
  8. docs_src/sql_databases/sql_app_py39/tests/test_sql_app.py

    from fastapi.testclient import TestClient
    from sqlalchemy import create_engine
    from sqlalchemy.orm import sessionmaker
    
    from ..database import Base
    from ..main import app, get_db
    
    SQLALCHEMY_DATABASE_URL = "sqlite:///./test.db"
    
    engine = create_engine(
        SQLALCHEMY_DATABASE_URL, connect_args={"check_same_thread": False}
    )
    TestingSessionLocal = sessionmaker(autocommit=False, autoflush=False, bind=engine)
    
    
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jan 07 14:11:31 GMT 2022
    - 1.2K bytes
    - Viewed (0)
  9. docs_src/sql_databases/sql_app/tests/test_sql_app.py

    from sqlalchemy import create_engine
    from sqlalchemy.orm import sessionmaker
    from sqlalchemy.pool import StaticPool
    
    from ..database import Base
    from ..main import app, get_db
    
    SQLALCHEMY_DATABASE_URL = "sqlite://"
    
    engine = create_engine(
        SQLALCHEMY_DATABASE_URL,
        connect_args={"check_same_thread": False},
        poolclass=StaticPool,
    )
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Jun 22 11:20:12 GMT 2023
    - 1.2K bytes
    - Viewed (0)
  10. internal/event/target/postgresql.go

    	Username           string    `json:"username"` // default: user running minio
    	Password           string    `json:"password"` // default: no password
    	Database           string    `json:"database"` // default: same as user
    	QueueDir           string    `json:"queueDir"`
    	QueueLimit         uint64    `json:"queueLimit"`
    	MaxOpenConnections int       `json:"maxOpenConnections"`
    }
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Apr 24 17:51:07 GMT 2024
    - 13.3K bytes
    - Viewed (0)
Back to top