Back to home page

EIC code displayed by LXR

 
 

    


Warning, /iDDS/main/config_default/alembic.ini is written in an unsupported language. File is not indexed.

0001 # A generic, single database configuration.
0002 
0003 [alembic]
0004 # path to migration scripts
0005 # script_location = alembic
0006 script_location = /opt/idds/lib/python3.9/site-packages/idds/orm/base/alembic
0007 
0008 # template used to generate migration file names; The default value is %%(rev)s_%%(slug)s
0009 # Uncomment the line below if you want the files to be prepended with date and time
0010 # see https://alembic.sqlalchemy.org/en/latest/tutorial.html#editing-the-ini-file
0011 # for all available tokens
0012 # file_template = %%(year)d_%%(month).2d_%%(day).2d_%%(hour).2d%%(minute).2d-%%(rev)s_%%(slug)s
0013 
0014 # sys.path path, will be prepended to sys.path if present.
0015 # defaults to the current working directory.
0016 prepend_sys_path = .
0017 
0018 # timezone to use when rendering the date within the migration file
0019 # as well as the filename.
0020 # If specified, requires the python-dateutil library that can be
0021 # installed by adding `alembic[tz]` to the pip requirements
0022 # string value is passed to dateutil.tz.gettz()
0023 # leave blank for localtime
0024 # timezone =
0025 timezone = UTC
0026 
0027 # max length of characters to apply to the
0028 # "slug" field
0029 # truncate_slug_length = 40
0030 
0031 # set to 'true' to run the environment during
0032 # the 'revision' command, regardless of autogenerate
0033 # revision_environment = false
0034 
0035 # set to 'true' to allow .pyc and .pyo files without
0036 # a source .py file to be detected as revisions in the
0037 # versions/ directory
0038 # sourceless = false
0039 
0040 # version location specification; This defaults
0041 # to alembic/versions.  When using multiple version
0042 # directories, initial revisions must be specified with --version-path.
0043 # The path separator used here should be the separator specified by "version_path_separator" below.
0044 # version_locations = %(here)s/bar:%(here)s/bat:alembic/versions
0045 
0046 # version path separator; As mentioned above, this is the character used to split
0047 # version_locations. The default within new alembic.ini files is "os", which uses os.pathsep.
0048 # If this key is omitted entirely, it falls back to the legacy behavior of splitting on spaces and/or commas.
0049 # Valid values for version_path_separator are:
0050 #
0051 # version_path_separator = :
0052 # version_path_separator = ;
0053 # version_path_separator = space
0054 version_path_separator = os  # Use os.pathsep. Default configuration used for new projects.
0055 
0056 # the output encoding used when revision files
0057 # are written from script.py.mako
0058 # output_encoding = utf-8
0059 
0060 sqlalchemy.url = driver://user:pass@localhost/dbname
0061 version_table_schema = DOMA_IDDS
0062 
0063 [post_write_hooks]
0064 # post_write_hooks defines scripts or Python functions that are run
0065 # on newly generated revision scripts.  See the documentation for further
0066 # detail and examples
0067 
0068 # format using "black" - use the console_scripts runner, against the "black" entrypoint
0069 # hooks = black
0070 # black.type = console_scripts
0071 # black.entrypoint = black
0072 # black.options = -l 79 REVISION_SCRIPT_FILENAME
0073 
0074 # Logging configuration
0075 [loggers]
0076 keys = root,sqlalchemy,alembic
0077 
0078 [handlers]
0079 keys = console
0080 
0081 [formatters]
0082 keys = generic
0083 
0084 [logger_root]
0085 level = WARN
0086 handlers = console
0087 qualname =
0088 
0089 [logger_sqlalchemy]
0090 level = WARN
0091 handlers =
0092 qualname = sqlalchemy.engine
0093 
0094 [logger_alembic]
0095 level = INFO
0096 handlers =
0097 qualname = alembic
0098 
0099 [handler_console]
0100 class = StreamHandler
0101 args = (sys.stderr,)
0102 level = NOTSET
0103 formatter = generic
0104 
0105 [formatter_generic]
0106 format = %(levelname)-5.5s [%(name)s] %(message)s
0107 datefmt = %H:%M:%S