bcputility 0.4.6
Added documentation for bcp versions that do not support
trustservercertUpdated documentation for bcpOptions so it is clear how to use command line arguments that have spaces.
Updated readme to clarify dependencies and provide quick start examples.
bcputility 0.4.3
CRAN release: 2024-05-09
An error is now thrown for cases where a projection has an EPSG that is
NA.Added ability to turn on QUOTED_IDENTIFIERS. This is required for some Microsoft database products. Use the bcp “-q” option.
Column names are quoted so that reserved words can be used.
bcputility 0.4.0
CRAN release: 2023-01-16
Override/set path to sqlcmd with
options(bcputility.sqlcmd.path = "<path-to-sqlcmd>")Added
bcpVersionandsqlcmdVersionto check versions.Specify tables without schema strictly as a character vector of size 1 e.g.
"<schema>.<table>". The schema and table will be quoted although special characters are not recommended except for “_“.Tests have been added that can run against a local instance of SQL Server. These do not work without it as SQL Server is a client/server configuration.
The README has been updated for new syntax and updated benchmarks.
bcpImportandbcpExportgain a bcpOptions argument that allows the user to include any options from the CLI. See documentation for formatting and specification.The connections arguments for
bcpImportandbcpExporthave been deprecated–server, database, username, password, trustedconnection. UsemakeConnectArgsfor the connectargs argument which adds Azure AD authentication and the option to disregard the trust server certificate.The “DBI” dependency has been dropped and all SQL Server queries are run using bcp or sqlcmd.
mapDataTypesis a convenience function to determine SQL Server data type conversions. The defaults attempt to determine the smallest type size for each column.createTable,dropTable, andcheckTableExistshave been added for internals and convenience. The primary purpose would be to define an empty table with user-defined types thatbcpImportcould append to.logicals no longer need to be converted from
FALSE/TRUEto0/1before importing in-memory data.The argument azure was added to
bcpImportandbcpExportfor Azure Active Directory authentication. This only works for username and password authentication.
bcputility 0.3.0
CRAN release: 2022-02-20
bcpImportnow returns the output of system2 for all specifications of stderr and stdoutadded documentation for using schema and
DBI::Idis now supportedtrusted connections are now compatible with newer sql server drivers as the default for all drivers is now
trusted_connection='yes'user name and passwords are now quoted with
shQuoteso special characters are handled across platformsadded check to see if bcp program can be found
bcputility 0.2.0
CRAN release: 2021-08-06
set the path to the bcp utility with the bcputility.bcp.path option
added links to source code, bug reports, and documentation site
rowterminator and fieldterminator are no passed to
data.table::fwriteif data is in memoryAdded support for geometry/geography data import for ‘sf’ objects
