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,
     )
Example #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,
     )
Example #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,
     )
 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,
     )
Example #7
0
 def get_builder(self, table="users"):
     connection = MockConnectionFactory().make("default")
     return QueryBuilder(self.grammar, connection, table=table, owner=User)
Example #8
0
 def get_builder(self, table="users"):
     connection = MockConnectionFactory().make("sqlite")
     return QueryBuilder(grammar=SQLiteGrammar,
                         connection_class=connection,
                         table=table,
                         model=User)