jwutils: Move to jwutils -> jw.util
Move all implementation source code from the jwutils module to jw.util. For compatibility with existing Python modules, keep a thin, autogenerated compatibility shim under jwutils. Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
bc7652fdf9
commit
a2684dd601
21 changed files with 678 additions and 52 deletions
7
src/python/jwutils/db/DataBase.py
Normal file
7
src/python/jwutils/db/DataBase.py
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
# ruff: noqa: E501
|
||||
|
||||
from jw.util.db.DataBase import DataBase as DataBase
|
||||
|
||||
__all__ = [
|
||||
"DataBase",
|
||||
]
|
||||
5
src/python/jwutils/db/Makefile
Normal file
5
src/python/jwutils/db/Makefile
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
TOPDIR = ../../../..
|
||||
PY_UPDATE_INIT_PY = false
|
||||
|
||||
include $(TOPDIR)/make/proj.mk
|
||||
include $(JWBDIR)/make/py-mod.mk
|
||||
6
src/python/jwutils/db/Session.py
Normal file
6
src/python/jwutils/db/Session.py
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
# ruff: noqa: E501
|
||||
from jw.util.db.Session import Session as Session
|
||||
|
||||
__all__ = [
|
||||
"Session",
|
||||
]
|
||||
6
src/python/jwutils/db/TableIoHandler.py
Normal file
6
src/python/jwutils/db/TableIoHandler.py
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
# ruff: noqa: E501
|
||||
from jw.util.db.TableIoHandler import TableIoHandler as TableIoHandler
|
||||
|
||||
__all__ = [
|
||||
"TableIoHandler",
|
||||
]
|
||||
17
src/python/jwutils/db/__init__.py
Normal file
17
src/python/jwutils/db/__init__.py
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
# >> -------------------------- generated by python-tools.sh >>
|
||||
# ruff: noqa: E501
|
||||
from pkgutil import extend_path
|
||||
|
||||
__path__ = extend_path(__path__, __name__)
|
||||
from .rows import rows_pretty as rows_pretty
|
||||
from .rows import rows_duplicates as rows_duplicates
|
||||
from .rows import rows_remove as rows_remove
|
||||
from .rows import rows_select as rows_select
|
||||
from .rows import rows_rewrite_regex as rows_rewrite_regex
|
||||
from .rows import rows_check_not_null as rows_check_not_null
|
||||
from .rows import rows_dumps as rows_dumps
|
||||
from .rows import rows_dump as rows_dump
|
||||
from .rows import rows_to_csv as rows_to_csv
|
||||
from .Session import Session as Session
|
||||
from .TableIoHandler import TableIoHandler as TableIoHandler
|
||||
# << -------------------------- generated by python-tools.sh <<
|
||||
5
src/python/jwutils/db/query/Makefile
Normal file
5
src/python/jwutils/db/query/Makefile
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
TOPDIR = ../../../../..
|
||||
PY_UPDATE_INIT_PY = false
|
||||
|
||||
include $(TOPDIR)/make/proj.mk
|
||||
include $(JWBDIR)/make/py-mod.mk
|
||||
6
src/python/jwutils/db/query/Queries.py
Normal file
6
src/python/jwutils/db/query/Queries.py
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
# ruff: noqa: E501
|
||||
from jw.util.db.query.Queries import Queries as Queries
|
||||
|
||||
__all__ = [
|
||||
"Queries",
|
||||
]
|
||||
6
src/python/jwutils/db/query/Query.py
Normal file
6
src/python/jwutils/db/query/Query.py
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
# ruff: noqa: E501
|
||||
from jw.util.db.query.Query import Query as Query
|
||||
|
||||
__all__ = [
|
||||
"Query",
|
||||
]
|
||||
8
src/python/jwutils/db/query/QueryResult.py
Normal file
8
src/python/jwutils/db/query/QueryResult.py
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
# ruff: noqa: E501
|
||||
from jw.util.db.query.QueryResult import ResType as ResType
|
||||
from jw.util.db.query.QueryResult import QueryResult as QueryResult
|
||||
|
||||
__all__ = [
|
||||
"ResType",
|
||||
"QueryResult",
|
||||
]
|
||||
10
src/python/jwutils/db/query/__init__.py
Normal file
10
src/python/jwutils/db/query/__init__.py
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
# >> -------------------------- generated by python-tools.sh >>
|
||||
# ruff: noqa: E501
|
||||
from pkgutil import extend_path
|
||||
|
||||
__path__ = extend_path(__path__, __name__)
|
||||
from .Queries import Queries as Queries
|
||||
from .Query import Query as Query
|
||||
from .QueryResult import ResType as ResType
|
||||
from .QueryResult import QueryResult as QueryResult
|
||||
# << -------------------------- generated by python-tools.sh <<
|
||||
22
src/python/jwutils/db/rows.py
Normal file
22
src/python/jwutils/db/rows.py
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
# ruff: noqa: E501
|
||||
from jw.util.db.rows import rows_pretty as rows_pretty
|
||||
from jw.util.db.rows import rows_duplicates as rows_duplicates
|
||||
from jw.util.db.rows import rows_remove as rows_remove
|
||||
from jw.util.db.rows import rows_select as rows_select
|
||||
from jw.util.db.rows import rows_rewrite_regex as rows_rewrite_regex
|
||||
from jw.util.db.rows import rows_check_not_null as rows_check_not_null
|
||||
from jw.util.db.rows import rows_dumps as rows_dumps
|
||||
from jw.util.db.rows import rows_dump as rows_dump
|
||||
from jw.util.db.rows import rows_to_csv as rows_to_csv
|
||||
|
||||
__all__ = [
|
||||
"rows_pretty",
|
||||
"rows_duplicates",
|
||||
"rows_remove",
|
||||
"rows_select",
|
||||
"rows_rewrite_regex",
|
||||
"rows_check_not_null",
|
||||
"rows_dumps",
|
||||
"rows_dump",
|
||||
"rows_to_csv",
|
||||
]
|
||||
6
src/python/jwutils/db/schema/Column.py
Normal file
6
src/python/jwutils/db/schema/Column.py
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
# ruff: noqa: E501
|
||||
from jw.util.db.schema.Column import Column as Column
|
||||
|
||||
__all__ = [
|
||||
"Column",
|
||||
]
|
||||
6
src/python/jwutils/db/schema/ColumnSet.py
Normal file
6
src/python/jwutils/db/schema/ColumnSet.py
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
# ruff: noqa: E501
|
||||
from jw.util.db.schema.ColumnSet import ColumnSet as ColumnSet
|
||||
|
||||
__all__ = [
|
||||
"ColumnSet",
|
||||
]
|
||||
6
src/python/jwutils/db/schema/CompositeForeignKey.py
Normal file
6
src/python/jwutils/db/schema/CompositeForeignKey.py
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
# ruff: noqa: E501
|
||||
from jw.util.db.schema.CompositeForeignKey import CompositeForeignKey as CompositeForeignKey
|
||||
|
||||
__all__ = [
|
||||
"CompositeForeignKey",
|
||||
]
|
||||
10
src/python/jwutils/db/schema/DataType.py
Normal file
10
src/python/jwutils/db/schema/DataType.py
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
# ruff: noqa: E501
|
||||
from jw.util.db.schema.DataType import py_type as py_type
|
||||
from jw.util.db.schema.DataType import Id as Id
|
||||
from jw.util.db.schema.DataType import DataType as DataType
|
||||
|
||||
__all__ = [
|
||||
"py_type",
|
||||
"Id",
|
||||
"DataType",
|
||||
]
|
||||
5
src/python/jwutils/db/schema/Makefile
Normal file
5
src/python/jwutils/db/schema/Makefile
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
TOPDIR = ../../../../..
|
||||
PY_UPDATE_INIT_PY = false
|
||||
|
||||
include $(TOPDIR)/make/proj.mk
|
||||
include $(JWBDIR)/make/py-mod.mk
|
||||
6
src/python/jwutils/db/schema/Schema.py
Normal file
6
src/python/jwutils/db/schema/Schema.py
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
# ruff: noqa: E501
|
||||
from jw.util.db.schema.Schema import Schema as Schema
|
||||
|
||||
__all__ = [
|
||||
"Schema",
|
||||
]
|
||||
3
src/python/jwutils/db/schema/SingleForeignKey.py
Normal file
3
src/python/jwutils/db/schema/SingleForeignKey.py
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
# ruff: noqa: E501
|
||||
|
||||
__all__ = []
|
||||
6
src/python/jwutils/db/schema/Table.py
Normal file
6
src/python/jwutils/db/schema/Table.py
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
# ruff: noqa: E501
|
||||
from jw.util.db.schema.Table import Table as Table
|
||||
|
||||
__all__ = [
|
||||
"Table",
|
||||
]
|
||||
14
src/python/jwutils/db/schema/__init__.py
Normal file
14
src/python/jwutils/db/schema/__init__.py
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
# >> -------------------------- generated by python-tools.sh >>
|
||||
# ruff: noqa: E501
|
||||
from pkgutil import extend_path
|
||||
|
||||
__path__ = extend_path(__path__, __name__)
|
||||
from .Column import Column as Column
|
||||
from .ColumnSet import ColumnSet as ColumnSet
|
||||
from .CompositeForeignKey import CompositeForeignKey as CompositeForeignKey
|
||||
from .DataType import py_type as py_type
|
||||
from .DataType import DataType as DataType
|
||||
from .Schema import Schema as Schema
|
||||
from .Table import Table as Table
|
||||
from .utils import check_schema as check_schema
|
||||
# << -------------------------- generated by python-tools.sh <<
|
||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue