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

SqlLoaderWriter.get_bulk_load_sql()   A

Complexity

Conditions 1

Size

Total Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
c 1
b 0
f 0
dl 0
loc 8
rs 9.4285
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