Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 3,447 for commit (0.07 sec)

  1. docs_src/sql_databases/tutorial001_py39.py

    @app.on_event("startup")
    def on_startup():
        create_db_and_tables()
    
    
    @app.post("/heroes/")
    def create_hero(hero: Hero, session: Session = Depends(get_session)) -> Hero:
        session.add(hero)
        session.commit()
        session.refresh(hero)
        return hero
    
    
    @app.get("/heroes/")
    def read_heroes(
        session: Session = Depends(get_session),
        offset: int = 0,
        limit: int = Query(default=100, le=100),
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Wed Oct 09 19:44:42 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  2. tests/transaction_test.go

    	user := User{Name: "transaction"}
    	if err := tx.Save(&user).Error; err != nil {
    		t.Fatalf("No error should raise")
    	}
    
    	if err := tx.Commit().Error; err != nil {
    		t.Fatalf("Commit should not raise error")
    	}
    
    	if err := tx.Rollback().Error; err == nil {
    		t.Fatalf("Rollback after commit should raise error")
    	}
    }
    
    func TestTransactionWithSavePoint(t *testing.T) {
    	tx := DB.Begin()
    
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Sat Sep 14 12:58:29 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  3. internal/disk/directio_unsupported.go

    // the semantics on filesystems like XFS, and these semantics are not
    // implemented at this time.
    // For more information on why typical DirectIO semantics do not apply to ZFS
    // see this ZFS-on-Linux commit message:
    // https://github.com/openzfs/zfs/commit/a584ef26053065f486d46a7335bea222cb03eeea
    
    // OpenFileDirectIO wrapper around os.OpenFile nothing special
    func OpenFileDirectIO(filePath string, flag int, perm os.FileMode) (*os.File, error) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Oct 18 18:08:15 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  4. docs_src/sql_databases/tutorial001_an.py

    app = FastAPI()
    
    
    @app.on_event("startup")
    def on_startup():
        create_db_and_tables()
    
    
    @app.post("/heroes/")
    def create_hero(hero: Hero, session: SessionDep) -> Hero:
        session.add(hero)
        session.commit()
        session.refresh(hero)
        return hero
    
    
    @app.get("/heroes/")
    def read_heroes(
        session: SessionDep,
        offset: int = 0,
        limit: Annotated[int, Query(le=100)] = 100,
    ) -> List[Hero]:
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Wed Oct 09 19:44:42 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  5. docs_src/sql_databases/tutorial001_an_py39.py

    app = FastAPI()
    
    
    @app.on_event("startup")
    def on_startup():
        create_db_and_tables()
    
    
    @app.post("/heroes/")
    def create_hero(hero: Hero, session: SessionDep) -> Hero:
        session.add(hero)
        session.commit()
        session.refresh(hero)
        return hero
    
    
    @app.get("/heroes/")
    def read_heroes(
        session: SessionDep,
        offset: int = 0,
        limit: Annotated[int, Query(le=100)] = 100,
    ) -> list[Hero]:
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Wed Oct 09 19:44:42 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  6. .github/workflows/codeql-analysis.yml

    # For most projects, this workflow file will not need changing; you simply need
    # to commit it to your repository.
    #
    # You may wish to alter this file to override the set of languages analyzed,
    # or to provide custom queries or build logic.
    name: "CodeQL"
    
    on:
      push:
        branches: [master]
      pull_request:
        # The branches below must be a subset of the branches above
        branches: [master]
      schedule:
        - cron: '0 11 * * 4'
    
    jobs:
    Registered: Thu Oct 31 02:32:13 UTC 2024
    - Last Modified: Fri Oct 02 13:24:14 UTC 2020
    - 2.5K bytes
    - Viewed (0)
  7. cni/pkg/iptables/testdata/hostprobe.golden

    * nat
    -N ISTIO_POSTRT
    -A POSTROUTING -j ISTIO_POSTRT
    -A ISTIO_POSTRT -m owner --socket-exists -p tcp -m set --match-set istio-inpod-probes-v4 dst -j SNAT --to-source 169.254.7.127
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Sep 25 20:54:34 UTC 2024
    - 186 bytes
    - Viewed (0)
  8. .github/workflows/check-bad-merge.yml

              java-version: '17'
          - name: Install Groovy
            run: sudo apt-get install groovy
          - name: List PR commits
            run: |
              git log --pretty=format:"%H" ${{ github.event.pull_request.base.sha }}..${{ github.event.pull_request.head.sha }} > pr_commits.txt
          - name: Check PR commits
            id: run_check
            run: |
              groovy .github/workflows/CheckBadMerge.groovy $(<pr_commits.txt) > output.txt 2>&1
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Fri Oct 11 18:32:33 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  9. requirements.txt

    -e .[all]
    -r requirements-tests.txt
    -r requirements-docs.txt
    pre-commit >=2.17.0,<5.0.0
    # For generating screenshots
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Nov 01 11:17:36 UTC 2024
    - 128 bytes
    - Viewed (0)
  10. CONTRIBUTING.md

        If you feel the source code should be reformatted, create a separate PR for this change.
      + Check for unnecessary whitespace with `git diff --check` before committing.
    + Make sure your commit messages are in the proper format. Your commit message should contain the key of the JIRA issue.
    ```
    [MNG-XXX] - Subject of the JIRA Ticket
     Optional supplemental description.
    ```
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Sun Oct 10 09:48:27 UTC 2021
    - 4.7K bytes
    - Viewed (0)
Back to top