equal
deleted
inserted
replaced
139 chown(self.dbpath, self.repo.config['uid']) |
139 chown(self.dbpath, self.repo.config['uid']) |
140 restrict_perms_to_user(self.dbpath, self.info) |
140 restrict_perms_to_user(self.dbpath, self.info) |
141 |
141 |
142 def set_schema(self, schema): |
142 def set_schema(self, schema): |
143 super(SQLiteAbstractSource, self).set_schema(schema) |
143 super(SQLiteAbstractSource, self).set_schema(schema) |
144 if self._need_sql_create and self._is_schema_complete(): |
144 if self._need_sql_create and self._is_schema_complete() and self.dbpath: |
145 self._create_database() |
145 self._create_database() |
146 self.rqlsqlgen = self.sqlgen_class(schema, self.sqladapter.dbhelper) |
146 self.rqlsqlgen = self.sqlgen_class(schema, self.sqladapter.dbhelper) |
147 |
147 |
148 def get_connection(self): |
148 def get_connection(self): |
149 return ConnectionWrapper(self) |
149 return ConnectionWrapper(self) |