mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-09-16 05:24:26 +02:00
Run cog and add some help text.
This commit is contained in:
parent
36518cbfcd
commit
6aab06e6ec
2 changed files with 66 additions and 5 deletions
|
|
@ -2746,10 +2746,24 @@ To load it from a specific path, use --load-extension.""",
|
|||
case_sensitive=False,
|
||||
),
|
||||
default="GEOMETRY",
|
||||
help="Specify a geometry type for this column.",
|
||||
show_default=True,
|
||||
)
|
||||
@click.option("--srid", type=int, default=4326)
|
||||
@click.option("--dimensions", "coord_dimension", type=str, default="XY")
|
||||
@click.option("--not-null", "not_null", is_flag=True)
|
||||
@click.option(
|
||||
"--srid",
|
||||
type=int,
|
||||
default=4326,
|
||||
show_default=True,
|
||||
help="Spatial Reference ID. See https://spatialreference.org for details on specific projections.",
|
||||
)
|
||||
@click.option(
|
||||
"--dimensions",
|
||||
"coord_dimension",
|
||||
type=str,
|
||||
default="XY",
|
||||
help="Coordinate dimensions. Use XYZ for three-dimensional geometries.",
|
||||
)
|
||||
@click.option("--not-null", "not_null", is_flag=True, help="Add a NOT NULL constraint.")
|
||||
@load_extension_option
|
||||
def add_geometry_column(
|
||||
db_path,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue