Completed
Push — master ( 04fdbb...4a47ee )
by P.R.
01:28
created

SqlLoaderWriter   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 14
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A get_bulk_load_sql() 0 8 1
1
"""
2
ETLT
3
4
Copyright 2016 Set Based IT Consultancy
5
6
Licence MIT
7
"""
8
import abc
9
10
from etlt.writer.Writer import Writer
11
12
13
class SqlLoaderWriter(Writer):
1 ignored issue
show
Unused Code introduced by
This abstract class does not seem to be used anywhere.
Loading history...
14
    """
15
    Abstract parent class for writing rows to a destination.
16
    """
17
18
    # ------------------------------------------------------------------------------------------------------------------
19
    @abc.abstractmethod
20
    def get_bulk_load_sql(self):
21
        """
22
        Returns a SQL statement for bulk loading the data into the database.
23
24
        :rtype: str
25
        """
26
        raise NotImplementedError()
27
28
# ----------------------------------------------------------------------------------------------------------------------
29