blueprints 0.6.3 → 0.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,21 +0,0 @@
1
- module Blueprints
2
- module DatabaseBackends
3
- class Abstract
4
- # Method to start transaction. Needs to be implemented in child class.
5
- def start_transaction
6
- raise NotImplementedError
7
- end
8
-
9
- # Method to revert transaction. Needs to be implemented in child class.
10
- def revert_transaction
11
- raise NotImplementedError
12
- end
13
-
14
- # Method to clear tables. Should accept delete policy and list of tables to delete. If list of tables is empty, should
15
- # delete all tables. Needs to be implemented in child class.
16
- def delete_tables(delete_policy, *args)
17
- raise NotImplementedError
18
- end
19
- end
20
- end
21
- end
@@ -1,18 +0,0 @@
1
- module Blueprints
2
- module DatabaseBackends
3
- # Database backend when no orm is actually used. Can be adapted to work with any kind of data.
4
- class None
5
- # Dummy method
6
- def start_transaction
7
- end
8
-
9
- # Dummy method
10
- def rollback_transaction
11
- end
12
-
13
- # Dummy method
14
- def delete_tables(delete_policy, *args)
15
- end
16
- end
17
- end
18
- end