Add the numeric dtype (i.e. support for NUMERIC columns).
Specifying a column as numeric will coerce it into decimal.Decimal objects. For SQLConnectors, this will be stored as a NUMERIC column. This is useful for syncing a mix of integer and float values.
NOTE: Due to implementation limits, numeric has strict precision issues in embedded databases (SQLite, DuckDB).
Mixing int and float will cast to numeric.
Rather than always casting to TEXT, a column containing a mix of int and float will be coerced into numeric.
Add schema to SQLConnectors.
Including the key schema or as an argument in the URI will use this schema for created tables. The argument search_path will also set schema (i.e. for PostgreSQL).
Add schema to pipe.parameters.
In addition to the default schema at the connector level, you may override this by setting schema under pipe.parameters.
import meerschaum as mrsm
pipe = mrsm.Pipe('a', 'b', parameters={'schema': 'myschema'})
Add schema to meerschaum.utils.sql.sql_item_name().
You may now pass an optional schema when quoting:
from meerschaum.utils.sql import sql_item_name
print(sql_item_name('foo', 'mssql', schema='dbo'))
# '[dbo].[foo]'
Add options to SQLConnector.
The key options will now contain a sub-dictionary of connection options, such as driver, search_path, or any other query parameters.
Disable the "Sync Documents" accordion item when the session is not authenticated.
When running the API with --secure, only admin users will be able to access the "Sync Documents" accordion items on the pipes' cards.
Remove dtype_backend from SQLConnector.read().
This argument previously had no effect. When applied, it was coercing JSON columns into strings, so it was removed.
Remove meerschaum.utils.daemon.Log.
This had been replaced by meerschaum.utils.daemon.RotatingLog and had been broken since the 2.0 release.
Remove params from Pipe.filter_existing().
To avoid confusion, filter parameters are instead derived from the incoming DataFrame. This will improve performance when repeatedly syncing chunks which span the same interval. The default limit of 250 unique values may be configured under pipes:sync:filter_params_index_limit.
Add forwarded_allow_ips and proxy_headers to the web API.
The default values forwarded_allow_ips='*' and proxy_headers=True are set when running Uvicorn or Gunicorn and will help when running Meerschaum behind a proxy.
Bump dash-extensions to >=1.0.4.
The bug that was holding back the version was due to including enrich.ServersideTransform in the dash proxy without actually utilizing it.
v2.0.5
Add the
numeric
dtype (i.e. support forNUMERIC
columns).Specifying a column as
numeric
will coerce it intodecimal.Decimal
objects. ForSQLConnectors
, this will be stored as aNUMERIC
column. This is useful for syncing a mix of integer and float values.Mixing
int
andfloat
will cast tonumeric
.Rather than always casting to
TEXT
, a column containing a mix ofint
andfloat
will be coerced intonumeric
.Add
schema
toSQLConnectors
.Including the key
schema
or as an argument in the URI will use this schema for created tables. The argumentsearch_path
will also setschema
(i.e. for PostgreSQL).Add
schema
topipe.parameters
.In addition to the default schema at the connector level, you may override this by setting
schema
underpipe.parameters
.Add
schema
tomeerschaum.utils.sql.sql_item_name()
.You may now pass an optional
schema
when quoting:Add
options
toSQLConnector
.The key
options
will now contain a sub-dictionary of connection options, such asdriver
,search_path
, or any other query parameters.Disable the "Sync Documents" accordion item when the session is not authenticated.
When running the API with
--secure
, only admin users will be able to access the "Sync Documents" accordion items on the pipes' cards.Remove
dtype_backend
fromSQLConnector.read()
.This argument previously had no effect. When applied, it was coercing JSON columns into strings, so it was removed.
Remove
meerschaum.utils.daemon.Log
.This had been replaced by
meerschaum.utils.daemon.RotatingLog
and had been broken since the 2.0 release.Remove
params
fromPipe.filter_existing()
.To avoid confusion, filter parameters are instead derived from the incoming DataFrame. This will improve performance when repeatedly syncing chunks which span the same interval. The default limit of 250 unique values may be configured under
pipes:sync:filter_params_index_limit
.Add
forwarded_allow_ips
andproxy_headers
to the web API.The default values
forwarded_allow_ips='*'
andproxy_headers=True
are set when running Uvicorn or Gunicorn and will help when running Meerschaum behind a proxy.Bump
dash-extensions
to>=1.0.4
.The bug that was holding back the version was due to including
enrich.ServersideTransform
in the dash proxy without actually utilizing it.