Skip to content

Commit a6ed511

Browse files
committed
rename compdb.{db => backend}
1 parent c381bef commit a6ed511

File tree

8 files changed

+9
-8
lines changed

8 files changed

+9
-8
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.

compdb/cli.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
import sys
77
import textwrap
88

9+
import compdb.backend.json
910
import compdb.config
10-
import compdb.db.json
1111
import compdb.complementer.headerdb
1212
from compdb.__about__ import (__desc__, __prog__, __version__)
1313
from compdb import (filelist, utils)
14-
from compdb.db.json import JSONCompileCommandSerializer
14+
from compdb.backend.json import JSONCompileCommandSerializer
1515
from compdb.core import CompilationDatabase
1616

1717

@@ -71,7 +71,7 @@ def set_args(self, args):
7171
self.args = args
7272

7373
def get_database_classes(self):
74-
return [compdb.db.json.JSONCompilationDatabase]
74+
return [compdb.backend.json.JSONCompilationDatabase]
7575

7676
def make_unpopulated_database(self):
7777
db = CompilationDatabase()

compdb/complementer/headerdb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import os
44
import re
55

6-
from compdb.db.memory import InMemoryCompilationDatabase
6+
from compdb.backend.memory import InMemoryCompilationDatabase
77
from compdb.complementer import ComplementerInterface
88
from compdb.models import CompileCommand
99

compdb/core.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@
66
import os
77

88
import compdb
9+
from compdb.backend.json import (JSONCompilationDatabase,
10+
compile_commands_to_json)
11+
from compdb.backend.memory import InMemoryCompilationDatabase
912
from compdb.models import (CompilationDatabaseInterface, ProbeError)
1013
from compdb.utils import (suppress, re_fullmatch, empty_iterator_wrap)
11-
from compdb.db.json import (JSONCompilationDatabase, compile_commands_to_json)
12-
from compdb.db.memory import InMemoryCompilationDatabase
1314

1415

1516
class ComplementerError(compdb.CompdbError):

tests/unit/test_dump.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
except ImportError:
88
from io import StringIO
99

10-
from compdb.db.json import (
10+
from compdb.backend.json import (
1111
command_to_json,
1212
compile_commands_to_json, )
1313
from compdb.models import CompileCommand

tests/unit/test_headerdb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import os
77
import unittest
88

9-
from compdb.db.memory import InMemoryCompilationDatabase
9+
from compdb.backend.memory import InMemoryCompilationDatabase
1010
from compdb.complementer.headerdb import (
1111
Complementer,
1212
subword_split, )

0 commit comments

Comments
 (0)