python-gRPC

Форк
0
/
alembic.ini 
114 строк · 3.4 Кб
1
# A generic, single database configuration.
2

3
[alembic]
4
# path to migration scripts
5
script_location = migrations
6

7
# template used to generate migration file names; The default value is %%(rev)s_%%(slug)s
8
# Uncomment the line below if you want the files to be prepended with date and time
9
# file_template = %%(year)d_%%(month).2d_%%(day).2d_%%(hour).2d%%(minute).2d-%%(rev)s_%%(slug)s
10

11
# sys.path path, will be prepended to sys.path if present.
12
# defaults to the current working directory.
13
prepend_sys_path = .
14

15
# timezone to use when rendering the date within the migration file
16
# as well as the filename.
17
# If specified, requires the python>=3.9 or backports.zoneinfo library.
18
# Any required deps can installed by adding `alembic[tz]` to the pip requirements
19
# string value is passed to ZoneInfo()
20
# leave blank for localtime
21
# timezone =
22

23
# max length of characters to apply to the
24
# "slug" field
25
# truncate_slug_length = 40
26

27
# set to 'true' to run the environment during
28
# the 'revision' command, regardless of autogenerate
29
# revision_environment = false
30

31
# set to 'true' to allow .pyc and .pyo files without
32
# a source .py file to be detected as revisions in the
33
# versions/ directory
34
# sourceless = false
35

36
# version location specification; This defaults
37
# to migrations/versions.  When using multiple version
38
# directories, initial revisions must be specified with --version-path.
39
# The path separator used here should be the separator specified by "version_path_separator" below.
40
# version_locations = %(here)s/bar:%(here)s/bat:migrations/versions
41

42
# version path separator; As mentioned above, this is the character used to split
43
# version_locations. The default within new alembic.ini files is "os", which uses os.pathsep.
44
# If this key is omitted entirely, it falls back to the legacy behavior of splitting on spaces and/or commas.
45
# Valid values for version_path_separator are:
46
#
47
# version_path_separator = :
48
# version_path_separator = ;
49
# version_path_separator = space
50
version_path_separator = os  # Use os.pathsep. Default configuration used for new projects.
51

52
# set to 'true' to search source files recursively
53
# in each "version_locations" directory
54
# new in Alembic version 1.10
55
# recursive_version_locations = false
56

57
# the output encoding used when revision files
58
# are written from script.py.mako
59
# output_encoding = utf-8
60

61
sqlalchemy.url = driver://user:pass@localhost/dbname
62

63

64
[post_write_hooks]
65
# post_write_hooks defines scripts or Python functions that are run
66
# on newly generated revision scripts.  See the documentation for further
67
# detail and examples
68

69
# format using "black" - use the console_scripts runner, against the "black" entrypoint
70
# hooks = black
71
# black.type = console_scripts
72
# black.entrypoint = black
73
# black.options = -l 79 REVISION_SCRIPT_FILENAME
74

75
# lint with attempts to fix using "ruff" - use the exec runner, execute a binary
76
# hooks = ruff
77
# ruff.type = exec
78
# ruff.executable = %(here)s/.venv/bin/ruff
79
# ruff.options = --fix REVISION_SCRIPT_FILENAME
80

81
# Logging configuration
82
[loggers]
83
keys = root,sqlalchemy,alembic
84

85
[handlers]
86
keys = console
87

88
[formatters]
89
keys = generic
90

91
[logger_root]
92
level = WARN
93
handlers = console
94
qualname =
95

96
[logger_sqlalchemy]
97
level = WARN
98
handlers =
99
qualname = sqlalchemy.engine
100

101
[logger_alembic]
102
level = INFO
103
handlers =
104
qualname = alembic
105

106
[handler_console]
107
class = StreamHandler
108
args = (sys.stderr,)
109
level = NOTSET
110
formatter = generic
111

112
[formatter_generic]
113
format = %(levelname)-5.5s [%(name)s] %(message)s
114
datefmt = %H:%M:%S
115

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.