Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 69 for sqlite (0.13 seconds)

  1. tests/multi_primary_keys_test.go

    	sort.Strings(contents)
    	return reflect.DeepEqual(tagContents, contents)
    }
    
    func TestManyToManyWithMultiPrimaryKeys(t *testing.T) {
    	if name := DB.Dialector.Name(); name == "sqlite" || name == "sqlserver" {
    		t.Skip("skip sqlite, sqlserver due to it doesn't support multiple primary keys with auto increment")
    	}
    
    	if name := DB.Dialector.Name(); name == "postgres" || name == "mysql" || name == "gaussdb" {
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Sat Mar 21 11:27:38 GMT 2026
    - 13.3K bytes
    - Click Count (0)
  2. generics_withresult_test.go

    package gorm_test
    
    import (
    	"context"
    	"testing"
    
    	"gorm.io/driver/sqlite"
    	"gorm.io/gorm"
    )
    
    type withResultUser struct {
    	ID   uint
    	Name string
    }
    
    func TestWithResultIncludesError(t *testing.T) {
    	db, err := gorm.Open(sqlite.Open("file::memory:?cache=shared"), &gorm.Config{})
    	if err != nil {
    		t.Fatalf("open db failed: %v", err)
    	}
    	if err := db.AutoMigrate(&withResultUser{}); err != nil {
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Sat Mar 21 11:34:24 GMT 2026
    - 1.2K bytes
    - Click Count (0)
  3. .github/workflows/tests.yml

    name: tests
    
    on:
      push:
        branches-ignore:
          - 'gh-pages'
      pull_request:
        branches-ignore:
          - 'gh-pages'
    
    permissions:
      contents: read
    
    jobs:
      # Label of the container job
      sqlite:
        strategy:
          matrix:
            go: ['stable', 'oldstable']
            platform: [ubuntu-latest] # can not run in windows OS
        runs-on: ${{ matrix.platform }}
    
        steps:
        - name: Set up Go 1.x
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Mon Mar 23 10:05:06 GMT 2026
    - 9K bytes
    - Click Count (0)
  4. docs/en/docs/tutorial/sql-databases.md

    ///
    
    As SQLModel is based on SQLAlchemy, you can easily use **any database supported** by SQLAlchemy (which makes them also supported by SQLModel), like:
    
    * PostgreSQL
    * MySQL
    * SQLite
    * Oracle
    * Microsoft SQL Server, etc.
    
    In this example, we'll use **SQLite**, because it uses a single file and Python has integrated support. So, you can copy this example and run it as is.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Mar 07 09:29:03 GMT 2026
    - 15.3K bytes
    - Click Count (0)
  5. docs/ja/docs/tutorial/sql-databases.md

    ///
    
    SQLModel は SQLAlchemy をベースにしているため、SQLAlchemy がサポートする任意のデータベース(SQLModel からもサポートされます)を簡単に使えます。例えば:
    
    * PostgreSQL
    * MySQL
    * SQLite
    * Oracle
    * Microsoft SQL Server など
    
    この例では、単一ファイルで動作し、Python に統合サポートがあるため、SQLite を使います。つまり、この例をそのままコピーして実行できます。
    
    本番アプリでは、PostgreSQL のようなデータベースサーバーを使いたくなるかもしれません。
    
    /// tip | 豆知識
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:07:17 GMT 2026
    - 18K bytes
    - Click Count (0)
  6. docs/zh-hant/docs/tutorial/sql-databases.md

    ///
    
    因為 SQLModel 建立在 SQLAlchemy 之上,你可以輕鬆使用 SQLAlchemy 所支援的任何資料庫(因此 SQLModel 也支援),例如:
    
    * PostgreSQL
    * MySQL
    * SQLite
    * Oracle
    * Microsoft SQL Server,等等。
    
    在這個範例中,我們會使用 SQLite,因為它只用到單一檔案,而且 Python 內建支援。你可以直接複製這個範例並原樣執行。
    
    之後,在你的正式環境應用中,你可能會想使用像 PostgreSQL 這類的資料庫伺服器。
    
    /// tip | 提示
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 14.8K bytes
    - Click Count (0)
  7. docs/zh/docs/tutorial/sql-databases.md

    ///
    
    由于 SQLModel 基于 SQLAlchemy,因此你可以轻松使用任何由 SQLAlchemy **支持的数据库**(这也让它们被 SQLModel 支持),例如:
    
    * PostgreSQL
    * MySQL
    * SQLite
    * Oracle
    * Microsoft SQL Server 等
    
    在这个示例中,我们将使用 **SQLite**,因为它使用单个文件,并且 Python 对其有集成支持。因此,你可以直接复制这个示例并运行。
    
    之后,对于你的生产应用程序,你可能会想要使用像 **PostgreSQL** 这样的数据库服务器。
    
    /// tip | 提示
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 15.4K bytes
    - Click Count (0)
  8. tests/helper_test.go

    	if err != nil {
    		return false
    	}
    
    	if currentMajor != major {
    		return currentMajor > major
    	}
    
    	return currentMinor >= minor
    }
    
    func isSqlite() bool {
    	return os.Getenv("GORM_DIALECT") == "sqlite"
    }
    
    func db(unscoped bool) *gorm.DB {
    	if unscoped {
    		return DB.Unscoped()
    	} else {
    		return DB
    	}
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Sat Mar 21 11:27:38 GMT 2026
    - 8.6K bytes
    - Click Count (0)
  9. docs/uk/docs/tutorial/sql-databases.md

    Оскільки SQLModel базується на SQLAlchemy, ви можете легко використовувати будь-яку базу даних, яку підтримує SQLAlchemy (а отже й SQLModel), наприклад:
    
    * PostgreSQL
    * MySQL
    * SQLite
    * Oracle
    * Microsoft SQL Server тощо
    
    У цьому прикладі ми використаємо **SQLite**, оскільки вона зберігається в одному файлі, а Python має вбудовану підтримку. Тож ви можете скопіювати цей приклад і запустити «як є».
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:27:41 GMT 2026
    - 22.2K bytes
    - Click Count (0)
  10. docs/pt/docs/tutorial/sql-databases.md

    * PostgreSQL
    * MySQL
    * SQLite
    * Oracle
    * Microsoft SQL Server, etc.
    
    Neste exemplo, usaremos **SQLite**, porque ele usa um único arquivo e o Python tem suporte integrado. Assim, você pode copiar este exemplo e executá-lo como está.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:20:43 GMT 2026
    - 16.5K bytes
    - Click Count (0)
Back to Top