github.com/kotovmak/go-admin@v1.1.1/modules/db/statement_sqlite_test.go (about)

     1  package db
     2  
     3  import (
     4  	"testing"
     5  
     6  	"github.com/kotovmak/go-admin/modules/config"
     7  	_ "github.com/kotovmak/go-admin/modules/db/drivers/sqlite"
     8  )
     9  
    10  var driverTestSQLiteConn Connection
    11  
    12  func InitSqlite() {
    13  	driverTestSQLiteConn = testConn(DriverSqlite, config.Database{File: "/admin.db"})
    14  }
    15  
    16  func TestSQLiteSQL_WhereIn(t *testing.T)         { testSQLWhereIn(t, driverTestSQLiteConn) }
    17  func TestSQLiteSQL_Count(t *testing.T)           { testSQLCount(t, driverTestSQLiteConn) }
    18  func TestSQLiteSQL_Select(t *testing.T)          { testSQLSelect(t, driverTestSQLiteConn) }
    19  func TestSQLiteSQL_OrderBy(t *testing.T)         { testSQLOrderBy(t, driverTestSQLiteConn) }
    20  func TestSQLiteSQL_GroupBy(t *testing.T)         { testSQLGroupBy(t, driverTestSQLiteConn) }
    21  func TestSQLiteSQL_Skip(t *testing.T)            { testSQLSkip(t, driverTestSQLiteConn) }
    22  func TestSQLiteSQL_Take(t *testing.T)            { testSQLTake(t, driverTestSQLiteConn) }
    23  func TestSQLiteSQL_Where(t *testing.T)           { testSQLWhere(t, driverTestSQLiteConn) }
    24  func TestSQLiteSQL_WhereNotIn(t *testing.T)      { testSQLWhereNotIn(t, driverTestSQLiteConn) }
    25  func TestSQLiteSQL_Find(t *testing.T)            { testSQLFind(t, driverTestSQLiteConn) }
    26  func TestSQLiteSQL_Sum(t *testing.T)             { testSQLSum(t, driverTestSQLiteConn) }
    27  func TestSQLiteSQL_Max(t *testing.T)             { testSQLMax(t, driverTestSQLiteConn) }
    28  func TestSQLiteSQL_Min(t *testing.T)             { testSQLMin(t, driverTestSQLiteConn) }
    29  func TestSQLiteSQL_Avg(t *testing.T)             { testSQLAvg(t, driverTestSQLiteConn) }
    30  func TestSQLiteSQL_WhereRaw(t *testing.T)        { testSQLWhereRaw(t, driverTestSQLiteConn) }
    31  func TestSQLiteSQL_UpdateRaw(t *testing.T)       { testSQLUpdateRaw(t, driverTestSQLiteConn) }
    32  func TestSQLiteSQL_LeftJoin(t *testing.T)        { testSQLLeftJoin(t, driverTestSQLiteConn) }
    33  func TestSQLiteSQL_WithTransaction(t *testing.T) { testSQLWithTransaction(t, driverTestSQLiteConn) }
    34  func TestSQLiteSQL_WithTransactionByLevel(t *testing.T) {
    35  	testSQLWithTransactionByLevel(t, driverTestSQLiteConn)
    36  }
    37  func TestSQLiteSQL_First(t *testing.T)       { testSQLFirst(t, driverTestSQLiteConn) }
    38  func TestSQLiteSQL_All(t *testing.T)         { testSQLAll(t, driverTestSQLiteConn) }
    39  func TestSQLiteSQL_ShowColumns(t *testing.T) { testSQLShowColumns(t, driverTestSQLiteConn) }
    40  func TestSQLiteSQL_ShowTables(t *testing.T)  { testSQLShowTables(t, driverTestSQLiteConn) }
    41  func TestSQLiteSQL_Update(t *testing.T)      { testSQLUpdate(t, driverTestSQLiteConn) }
    42  func TestSQLiteSQL_Delete(t *testing.T)      { testSQLDelete(t, driverTestSQLiteConn) }
    43  func TestSQLiteSQL_Exec(t *testing.T)        { testSQLExec(t, driverTestSQLiteConn) }
    44  func TestSQLiteSQL_Insert(t *testing.T)      { testSQLInsert(t, driverTestSQLiteConn) }
    45  func TestSQLiteSQL_Wrap(t *testing.T)        { testSQLWrap(t, driverTestSQLiteConn) }