예제 #1
0
 def get_builder(self, table="users"):
     connection = MockConnectionFactory().make("postgres")
     return QueryBuilder(
         self.grammar,
         connection_class=connection,
         connection="postgres",
         table=table,
         model=Model(),
     )
 def get_builder(self, table="users"):
     connection = MockConnectionFactory().make("sqlite")
     return QueryBuilder(
         self.grammar,
         connection_class=connection,
         connection="mysql",
         table=table,
         dry=True,
     )
예제 #3
0
 def get_builder(self, table="users"):
     connection = MockConnectionFactory().make("default")
     return QueryBuilder(
         grammar=MySQLGrammar,
         connection_class=connection,
         connection="mysql",
         table=table,
         connection_details=DATABASES,
     )
 def get_builder(self, table="users"):
     connection = MockConnectionFactory().make("mssql")
     return QueryBuilder(
         grammar=MSSQLGrammar,
         connection_class=connection,
         connection="mssql",
         table=table,
         model=User,
     )
예제 #5
0
 def get_builder(self, table="users", dry=True):
     connection = MockConnectionFactory().make("mssql")
     return QueryBuilder(
         # self.grammar,
         connection_class=connection,
         connection="mssql",
         table=table,
         model=ModelTest(),
         dry=dry,
     )
예제 #6
0
 def get_builder(self, table="users", dry=True):
     connection = MockConnectionFactory().make("default")
     return QueryBuilder(
         grammar=self.grammar,
         connection_class=connection,
         connection="mysql",
         table=table,
         model=User(),
         dry=dry,
         connection_details=DATABASES,
     )
예제 #7
0
 def get_builder(self, table="users"):
     connection = MockConnectionFactory().make("default")
     return QueryBuilder(self.grammar, connection, table=table, owner=User)
예제 #8
0
 def get_builder(self, table="users"):
     connection = MockConnectionFactory().make("sqlite")
     return QueryBuilder(grammar=SQLiteGrammar,
                         connection_class=connection,
                         table=table,
                         model=User)