Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for isSqlite (0.06 sec)

  1. tests/create_test.go

    			t.Fatal("failed to create data from map with table, @id != id")
    		}
    	}
    }
    
    func TestCreateFromMapWithTable(t *testing.T) {
    	tableDB := DB.Table("users")
    	supportLastInsertID := isMysql() || isSqlite()
    
    	// case 1: create from map[string]interface{}
    	record := map[string]interface{}{"name": "create_from_map_with_table", "age": 18}
    	if err := tableDB.Create(record).Error; err != nil {
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Tue Mar 19 03:50:28 UTC 2024
    - 26.4K bytes
    - Viewed (0)
  2. 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" {
    		stmt := gorm.Statement{DB: DB}
    		stmt.Parse(&Blog{})
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Thu Jan 06 07:02:53 UTC 2022
    - 12.8K bytes
    - Viewed (0)
  3. docs/zh/docs/tutorial/sql-databases.md

    ## 直接与数据库交互
    
    如果您想独立于 FastAPI 直接浏览 SQLite 数据库(文件)以调试其内容、添加表、列、记录、修改数据等,您可以使用[SQLite 的 DB Browser](https://sqlitebrowser.org/)
    
    它看起来像这样:
    
    <img src="/img/tutorial/sql-databases/image02.png">
    
    您还可以使用[SQLite Viewer](https://inloop.github.io/sqlite-viewer/)或[ExtendsClass](https://extendsclass.com/sqlite-browser.html)等在线 SQLite 浏览器。
    
    ## 中间件替代数据库会话
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 27.1K bytes
    - Viewed (0)
  4. 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á.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 27 15:25:29 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  5. tests/test_tutorial/test_sql_databases/test_tutorial001.py

            warnings.simplefilter("always")
            mod = importlib.import_module(f"docs_src.sql_databases.{request.param}")
            clear_sqlmodel()
            importlib.reload(mod)
        mod.sqlite_url = "sqlite://"
        mod.engine = create_engine(
            mod.sqlite_url, connect_args={"check_same_thread": False}, poolclass=StaticPool
        )
    
        with TestClient(mod.app) as c:
            yield c
    
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Wed Oct 09 19:44:42 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  6. tests/table_test.go

    		t.Errorf("Table with escape character, got %v", r.Statement.SQL.String())
    	}
    
    	r = dryDB.Create(&UserWithTable{}).Statement
    	if DB.Dialector.Name() != "sqlite" {
    		if !regexp.MustCompile(`INSERT INTO .gorm.\..user. (.*name.*) VALUES (.*)`).MatchString(r.Statement.SQL.String()) {
    			t.Errorf("Table with escape character, got %v", r.Statement.SQL.String())
    		}
    	} else {
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Sat Mar 09 09:31:28 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  7. docs/em/docs/tutorial/sql-databases.md

    ⚫️ 🔜 👀 💖 👉:
    
    <img src="/img/tutorial/sql-databases/image02.png">
    
    👆 💪 ⚙️ 💳 🗄 🖥 💖 <a href="https://inloop.github.io/sqlite-viewer/" class="external-link" target="_blank">🗄 📋</a> ⚖️ <a href="https://extendsclass.com/sqlite-browser.html" class="external-link" target="_blank">ExtendsClass</a>.
    
    ## 🎛 💽 🎉 ⏮️ 🛠️
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 25K bytes
    - Viewed (0)
  8. 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.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Wed Oct 09 19:44:42 UTC 2024
    - 14.7K bytes
    - Viewed (0)
  9. tests/update_test.go

    		t.Errorf("failed to find created record, got error: %v, result: %+v", err, result4)
    	}
    }
    
    // only sqlite, postgres, sqlserver support returning
    func TestUpdateReturning(t *testing.T) {
    	if DB.Dialector.Name() != "sqlite" && DB.Dialector.Name() != "postgres" && DB.Dialector.Name() != "sqlserver" {
    		return
    	}
    
    	users := []*User{
    		GetUser("update-returning-1", Config{}),
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Dec 04 03:50:58 UTC 2023
    - 30.3K bytes
    - Viewed (0)
  10. tests/test_tutorial/test_sql_databases/test_tutorial002.py

            warnings.simplefilter("always")
            mod = importlib.import_module(f"docs_src.sql_databases.{request.param}")
            clear_sqlmodel()
            importlib.reload(mod)
        mod.sqlite_url = "sqlite://"
        mod.engine = create_engine(
            mod.sqlite_url, connect_args={"check_same_thread": False}, poolclass=StaticPool
        )
    
        with TestClient(mod.app) as c:
            yield c
    
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Wed Oct 09 19:44:42 UTC 2024
    - 19.9K bytes
    - Viewed (0)
Back to top