-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split classes, modules, tests to keep the "idiomatic" layer well sepa…
…rate and not touch the "astrapy" layer (#222) * astrapy/idiomatic split structure: modules, imports, tests * completed refactor into new structure * complete refactoring into split classes, incl. tests. Not many methods implemented yet * astrapy classes allow parameter override in their copy methods * collection constructors does apply parameter overrides even when astra_db passed * wip for the optional namespace when creating Collections * create_collection, get_collection, drop_collection, Collection constructor
- Loading branch information
1 parent
84e5e03
commit ea77276
Showing
27 changed files
with
1,952 additions
and
502 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Copyright DataStax, Inc. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
from astrapy.idiomatic.collection import AsyncCollection, Collection | ||
from astrapy.idiomatic.database import AsyncDatabase, Database | ||
|
||
__all__ = [ | ||
"AsyncCollection", | ||
"Collection", | ||
"AsyncDatabase", | ||
"Database", | ||
] |
Oops, something went wrong.