Skip to content

Adding timeout configuration for read and write queries #203

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 343 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
343 commits
Select commit Hold shift + click to select a range
e1fb962
Bump version for Rcpp branch.
jeroen Feb 23, 2015
ab99f85
New URL
jeroen Feb 24, 2015
9e86579
Merge branch 'master' of https://github.com/jeroenooms/RMySQL
jeroen Feb 24, 2015
4afa2cb
Use latest DBI
hadley Feb 25, 2015
765fe44
Always set character set to utf-8
hadley Mar 13, 2015
8d40dc6
collect coverage
Jul 2, 2015
be7522e
Merge pull request #74 from krlmlr/codecov
hadley Jul 2, 2015
f05b332
fix copy-pastie
Jul 2, 2015
9fb0f86
Merge pull request #75 from krlmlr/codecov
hadley Jul 2, 2015
cf054fc
Add TAGS file to .gitignore
Jul 7, 2015
60ccc52
Backport some tweaks from stable branch
jeroen Jul 29, 2015
fab70fc
Correct spelling of libmysqlclient
Jul 30, 2015
f7fd887
Refactor configure script
jeroen Aug 25, 2015
bfbbe0d
add makevars.in
jeroen Aug 25, 2015
fbf8344
Fix for R-devel on Windows
jeroen Aug 25, 2015
5f6c2e3
Tweaks
jeroen Aug 25, 2015
02506d9
Update comments
jeroen Aug 25, 2015
92fcc9a
rpm fix
jeroen Aug 25, 2015
f67f446
Fix for homebrew cache
jeroen Aug 26, 2015
4a27009
Use ISNAN() to prevent build error on OS X 10.7
peternowee Sep 30, 2015
6716a73
Merge pull request #89 from peternowee/fix-mac-isnan
hadley Sep 30, 2015
3c8cc11
require sudo
Sep 30, 2015
dc4e821
suggest DBItest
Sep 30, 2015
49ec1cd
install DBItest
Sep 30, 2015
617dc68
Merge branch 'feature/dbi-test' into develop
Sep 30, 2015
6b37d12
Clarify the Debian package name
jeroen Oct 13, 2015
5a1c496
Fix for configure
jeroen Oct 13, 2015
7a1e69e
Typo
jeroen Oct 13, 2015
02dccd9
Better name
jeroen Oct 13, 2015
2bef3fe
Tweak
jeroen Oct 27, 2015
bd3c19d
require sudo
Sep 30, 2015
2175303
suggest DBItest
Oct 27, 2015
1ac2c5b
install DBItest
Sep 30, 2015
e8c2dcf
add getting started test
Oct 1, 2015
1bb0f2f
use test_all
Oct 1, 2015
84a30bc
has constructor with arguments
Oct 1, 2015
0b18943
ignore show so far
Oct 1, 2015
6c4a66a
don't test info
Oct 2, 2015
034047c
need to configure dbname
Oct 4, 2015
a573955
no logical data type
Oct 4, 2015
509f1bb
no 64-bit support
Oct 10, 2015
598e2cf
link to issues
Oct 10, 2015
6471e89
don't test character literals for now
Oct 10, 2015
19c2a9f
add ignores for time and timestamp
Oct 11, 2015
08154aa
fix issue number; UTC in literals not supported
Oct 11, 2015
1049d76
skip write_table, read_table and list_tables tests
Oct 27, 2015
da7f939
ignore failing test
Oct 29, 2015
22e6e98
ignore test
Nov 6, 2015
2067727
use std::auto_ptr to avoid leaked object
Nov 6, 2015
45cb630
not an error
Nov 6, 2015
2606c33
failing 64-bit test
Nov 6, 2015
621a44f
skip failing tests
Nov 7, 2015
2df0f92
remove test
Nov 7, 2015
f132037
remove test
Nov 7, 2015
dbcd888
skip new tests where already a subset was failing
Nov 7, 2015
5f1b091
skip failing test
Nov 7, 2015
3343f21
covered by DBItest: roundtrip_quotes
Nov 7, 2015
63e0412
won't migrate
Nov 7, 2015
18c2050
covered by DBItest: roundtrip_character
Nov 7, 2015
f6575be
DBItest: roundtrip_quotes and roundtrip_keywords
Nov 7, 2015
8dead83
won't migrate
Nov 7, 2015
af8387b
DBItest: roundtrip_rownames
Nov 7, 2015
526f5bf
DBItest: append_table_error
Nov 7, 2015
26cc7a8
DBItest: temporary_table
Nov 8, 2015
9b35d00
DBItest: can_connect_and_disconnect
Nov 8, 2015
148f65a
DBItest: fetch_closed
Nov 8, 2015
e637e11
DBItest: command_query
Nov 8, 2015
228c322
won't migrate
Nov 8, 2015
ef5a7d4
skip test
Nov 8, 2015
a2e57c1
need to increase number of rows fetched when receiving EOF
Nov 8, 2015
c27a566
nudge
Nov 9, 2015
acdffbb
install DBItest from rstats-db
Nov 9, 2015
e9e2744
require sudo
Sep 30, 2015
3830fc2
create test database
Nov 9, 2015
9993276
Merge branch 'feature/travis' into develop
Nov 9, 2015
1aa4a56
Merge branch 'develop' into feature/dbi-test
Nov 9, 2015
12ef4e3
Merge pull request #108 from krlmlr/feature/travis
hadley Nov 9, 2015
2bd9913
skip failing and unsupported bind tests
Nov 10, 2015
2852865
adapt to renamed test
Nov 10, 2015
d6aed48
skip difficult tests
Nov 10, 2015
2875a9b
skip failing
Nov 10, 2015
ecdfd1f
skip not implemented
Nov 10, 2015
ec67dbe
adapt to renamed tests
Nov 10, 2015
38eaf67
skip compliance test
Nov 10, 2015
0701614
use existing issue
Nov 11, 2015
6b14dc3
skip test that fails on Travis
Nov 11, 2015
d013d5e
skip failing
Nov 12, 2015
ee1d209
skip failing
Nov 13, 2015
dcd470c
ignore "above" tests when "below" tests are ignored
Nov 13, 2015
7435745
ignore inapplicable test
Nov 14, 2015
a859666
DBItest: stale_result_warning
Nov 14, 2015
612bf61
DBItest: row_count
Nov 14, 2015
4e54947
DBItest: rows_affected
Nov 14, 2015
3039381
skip unsupported test
Nov 14, 2015
6130dc9
skip failing
Nov 14, 2015
7da1623
align
Nov 15, 2015
98d0d78
add header
Nov 15, 2015
cb2a4b9
Fix repetition of strings in subsequent rows
peternowee Dec 14, 2015
7eed63e
Merge pull request #125 from peternowee/fix-issue65
krlmlr Dec 16, 2015
3a93668
Allow several dbConnect() parameters to be NULL
peternowee Nov 13, 2015
9af08c4
Make dbGetInfo() more consistent with 0.10.7
peternowee Dec 18, 2015
4eb67a4
Use actual connection info for MySQLConnection slots
peternowee Dec 18, 2015
f22680b
bind to version 1.0-1
Dec 23, 2015
20d242d
Use const references in connection parameters
peternowee Jan 20, 2016
91818eb
import DBI instead of depending on it
Jan 27, 2016
631329b
skip cannot_disconnect_twice for now
Jan 27, 2016
ce31d7c
install production branch of DBItest
Jan 27, 2016
341f767
Switch to R Travis
jeroen Jan 28, 2016
9243d8f
Merge pull request #134 from krlmlr/fix-conn-param-null
krlmlr Feb 2, 2016
a3741cf
Merge pull request #85 from sambrightman/readmespelling
krlmlr Feb 2, 2016
a2675dc
Fix file name typo. Closes #84.
Feb 2, 2016
322132e
Port from stable
jeroen Feb 2, 2016
39d2070
Merge branch 'master' of https://github.com/rstats-db/rmysql
jeroen Feb 2, 2016
bd327e8
Merge branch 'master' into fix-slots
peternowee Feb 3, 2016
2629f45
Revert "import DBI instead of depending on it"
Feb 5, 2016
067e3a8
Merge branch 'master' (early part) into feature/dbi-test
Feb 5, 2016
08a89e2
Merge branch 'master' (early part) into feature/dbi-test
Feb 5, 2016
3c45c02
Merge branch 'master' (early part) into feature/dbi-test
Feb 5, 2016
361a61f
Merge branch 'master' (early part) into feature/dbi-test
Feb 5, 2016
97251b7
Merge commit 'a2675dc~2' into feature/dbi-test
Feb 5, 2016
957fc79
Merge branch 'master' into feature/dbi-test
Feb 5, 2016
4443fbd
specify params
Feb 5, 2016
ecb3c41
use passwordless access
Feb 5, 2016
24e5bfb
Merge remote-tracking branch 'origin/master' into feature/dbi-test
Feb 5, 2016
3d13294
import DBI instead of depending on it
Jan 27, 2016
258759b
add library(DBI) everywhere
Feb 5, 2016
474e407
document
Feb 5, 2016
2752ad0
document
Feb 5, 2016
3b1ac59
Merge branch 'master' into feature/dbi-test
Feb 5, 2016
6f7989d
Merge branch 'feature/dbi-test-examples' into feature/dbi-test
Feb 5, 2016
1611aca
ignore new list_fields test
Feb 9, 2016
39c8081
ignore test that depends on code not yet in DBI
Feb 9, 2016
089fe42
mute now failing test
Feb 11, 2016
f16efce
bump version to 0.11-1
Mar 24, 2016
8b627d6
NEWS
Mar 24, 2016
e8df21b
Merge branch 'release/0.11-1' into production
Mar 29, 2016
f7bd58f
Merge tag 'v0.11-1'
Mar 29, 2016
32019c2
don't need library(DBI), reexporting all methods
Mar 29, 2016
282ecf2
reexport dbGetQuery()
Mar 29, 2016
5398ae2
Merge pull request #100 from krlmlr/feature/dbi-test
krlmlr Mar 29, 2016
f20bbd3
bump version to 0.11-2
Mar 29, 2016
58c8163
NEWS
Mar 29, 2016
3a14f6b
no sudo
Mar 29, 2016
7189b88
Merge branch 'release/0.11-2' into production
Mar 29, 2016
d878a3b
Merge tag 'v0.11-2'
Mar 29, 2016
0daee7a
use Rcpp from CRAN
Mar 29, 2016
9960509
indent
Mar 29, 2016
379a0fe
cache
Mar 29, 2016
563dad5
need sudo after all
Mar 29, 2016
d9f3496
try addons
Mar 29, 2016
356cd3c
no sudo
Mar 29, 2016
d06d970
copy from RPostgress
Mar 29, 2016
cf9be6d
Merge pull request #143 from rstats-db/feature/travis-no-sudo
krlmlr Mar 29, 2016
cee7232
Merge branch 'master' into fix-conn-param-null
peternowee Mar 30, 2016
6c0a5e8
Merge pull request #129 from peternowee/fix-conn-param-null
krlmlr Mar 30, 2016
7c94c7e
don't need constrefs for integers
Mar 30, 2016
f65b793
Merge branch 'master' into fix-slots
peternowee Mar 30, 2016
b88ad0b
try build matrix
Apr 1, 2016
1960a5f
reflect rename of DBI function
Apr 1, 2016
2870a86
Merge branch 'feature/dbi-interface' into feature/mariadb
Apr 1, 2016
f676e19
wrap mysql_() output in std::string
Apr 1, 2016
39cb9e3
also the other function
Apr 1, 2016
444ce87
Merge branch 'feature/dbi-interface' into feature/mariadb
Apr 1, 2016
6994663
Merge branch 'feature/dbi-interface'
Apr 1, 2016
5e504c6
Automatic Merge branch 'master' into feature/mariadb
krlmlr Apr 1, 2016
6b14e5e
Merge branch 'feature/mariadb'. Fixes #145.
Apr 1, 2016
9ac0716
Merge pull request #78 from sambrightman/gitignore
krlmlr Apr 4, 2016
ab632f8
Merge branch 'master' into fix-slots
peternowee Apr 4, 2016
8684997
Add ssl.ca argument to connection creation
Apr 4, 2016
7a47c62
Add all SSL arguments
Apr 4, 2016
f15b24f
True 'or's
Apr 4, 2016
992f10f
Merge branch 'feature/131-ssl-ca-arg'. Fixes #131. Closes #148.
Apr 18, 2016
4aa8932
document
Apr 18, 2016
9a4716e
Add AV
jeroen Apr 20, 2016
ed30a80
Add more badges
jeroen Apr 20, 2016
1189010
Update readme a bit
jeroen Apr 20, 2016
d823c6b
Maybe this?
jeroen Apr 20, 2016
7eac922
That didn't help
jeroen Apr 20, 2016
be1cea3
Better avoid legeacy libmysql
jeroen Apr 20, 2016
d17c928
Typos
jeroen Apr 20, 2016
8982f48
Fix Av
jeroen Apr 20, 2016
2f7f4d1
Fix AV
jeroen Apr 20, 2016
5f2160e
named context
Jun 8, 2016
fff76af
use ISNA()
Jun 8, 2016
3350d74
redefine timegm() only for Win32 builds
Jun 8, 2016
a6d0fd1
document
Jun 8, 2016
79d5db8
bump version to 0.11-3
Jun 8, 2016
c6266d7
NEWS
Jun 8, 2016
3b490cb
Merge branch 'r-0.11-3' into production
Jun 8, 2016
7a21d83
Merge tag 'v0.11-3'
Jun 8, 2016
cb49a91
use tweak
Jun 24, 2016
4aeb570
Add package-level documentation
Jun 25, 2016
687fc5c
Enable Travis for OSX
jeroen Jul 5, 2016
8f883b9
Port Travis script from stable
jeroen Jul 6, 2016
91da533
Use dev versions of DBI
jeroen Jul 6, 2016
b56f013
Fix a few check warnings
jeroen Jul 6, 2016
cedf2fb
Fix MAX_NO_FIELD_TYPES compiler warning
jeroen Jul 6, 2016
005acd0
Fix check warning about missing documentation
jeroen Jul 6, 2016
0716e6a
Make it work across versions of libmysql
jeroen Jul 6, 2016
a3c813b
Mention new fedora package
jeroen Jul 7, 2016
ea92f08
initialize DBItest context in test helper
Aug 1, 2016
fe5e322
ignore test
krlmlr Sep 16, 2016
70b32af
update Rcpp
krlmlr Sep 17, 2016
9767afa
use new placeholder_pattern tweak for rstats-db/DBItest#95
krlmlr Sep 17, 2016
630a11d
ignore
krlmlr Oct 3, 2016
03dfe50
ignore all
krlmlr Oct 3, 2016
e8f2bdf
ignore test
krlmlr Oct 6, 2016
1c70199
Fix typos in the documentation of dbConnect().
mcol Nov 22, 2016
cbcb8b5
add cleanup script
jeroen Dec 14, 2016
3efcf86
Update Travis
jeroen Dec 15, 2016
10d878c
bump version to 0.11-4
krlmlr Dec 29, 2016
89eb9dd
document
krlmlr Dec 29, 2016
63be715
NEWS
krlmlr Dec 29, 2016
33a97ac
Merge branch 'r-0.11-4' into production
krlmlr Dec 29, 2016
0963be5
Merge tag 'v0.11-4'
krlmlr Dec 29, 2016
87e9636
Merge pull request #175 from mcol/master
krlmlr Dec 29, 2016
6d99b54
Merge pull request #127 from peternowee/fix-slots
krlmlr Dec 29, 2016
47cfd00
Merge pull request #159 from Ironholds/master
krlmlr Dec 29, 2016
8dfea32
document
krlmlr Dec 29, 2016
9742ace
use _PACKAGE, CC @Ironholds
krlmlr Dec 29, 2016
2ba90d5
bump version to 0.11-5
krlmlr Dec 29, 2016
8f98218
NEWS
krlmlr Dec 29, 2016
99bd7f2
Merge branch 'r-0.11-5' into production
krlmlr Dec 29, 2016
2128ad6
Merge tag 'v0.11-5'
krlmlr Dec 29, 2016
c3ec9f1
tweak test ignore
krlmlr Jan 19, 2017
7132558
adapt to test changes
krlmlr Jan 21, 2017
f646d5c
test removed
krlmlr Jan 21, 2017
ef2eb47
adapt to changed tests
krlmlr Jan 30, 2017
3451cc7
mute tests
krlmlr Feb 25, 2017
95e7627
mute tests
krlmlr Feb 26, 2017
f4e4db5
fix dbDataType(..., data.frame)
krlmlr Mar 1, 2017
043db79
update email and github
jeroen Mar 14, 2017
b6ec9e3
Extract autobrew
jeroen Mar 16, 2017
1e03e75
Bump Travis
jeroen Mar 16, 2017
f696d08
Fix autobrew
jeroen Mar 17, 2017
115229a
Use safe syntax
jeroen Mar 17, 2017
4f0167c
Fix Windows build
jeroen Mar 19, 2017
51fe04e
Fix compiler warnings
jeroen Mar 19, 2017
f6ec5e4
Fix Windows bug
jeroen Mar 19, 2017
94f7eab
remove old windows binaries
jeroen Mar 19, 2017
3018ffd
Port stuff from stable
jeroen Mar 19, 2017
5f109f3
Add symbol registration for CRAN
jeroen Mar 19, 2017
bcaa51f
Update readme
jeroen Mar 19, 2017
5af971d
Tweak readme
jeroen Mar 19, 2017
5269820
Fix unit test on Windows
jeroen Mar 20, 2017
aa2579c
Do not use TMPDIR in configure
jeroen Mar 21, 2017
74737da
mute tests
krlmlr Mar 25, 2017
5ac5425
ignore tests
krlmlr Apr 6, 2017
177a533
Trigger build
jeroen May 15, 2017
ee2eff9
Adding timeout configuration for read and write queries
Jun 8, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,4 @@ src\/RCS
^a\.out\.dSYM$
^NEWS\.md$
^revdep$
^appveyor\.yml$
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.bin binary
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ src/Makevars
config.status
a.out.dSYM
homebrew
TAGS
95 changes: 54 additions & 41 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,48 +1,61 @@
# Sample .travis.yml for R projects.
#
# See README.md for instructions, or for more configuration options,
# see the wiki:
# https://github.com/craigcitro/r-travis/wiki
language: r
cache: packages

language: c
services: MySQL

env:
- BOOTSTRAP_LATEX="1"
- BOOTSTRAP_LATEX="1" R_CHECK_REVDEP="1" # checks reverse depends

# Create a build matrix that will test a regular check
# and also check the reverse dependencies
matrix:
# http://docs.travis-ci.com/user/build-configuration/#Fast-finishing
# allows the build to "pass" when the non-failure-able builds are done
fast_finish: true

# http://docs.travis-ci.com/user/build-configuration/#Rows-That-are-Allowed-To-Fail
allow_failures:
# allows the revdep build to fail and still "pass" within travis
- env: BOOTSTRAP_LATEX="1" R_CHECK_REVDEP="1"


before_install:
- sudo apt-get install libmysqlclient-dev
- curl -OL http://raw.github.com/craigcitro/r-travis/master/scripts/travis-tool.sh
- sudo apt-get install r-bioc-biobase r-cran-rjava
- chmod 755 ./travis-tool.sh
- ./travis-tool.sh bootstrap
install:
- ./travis-tool.sh install_deps

before_script:
- mysql -e "CREATE USER 'billy'@'localhost' IDENTIFIED BY 'supersecret';"
- printf "[rs-dbi]\nusername=billy\npassword=supersecret\n" > ~/.my.cnf

script: ./travis-tool.sh run_tests

after_failure:
- ./travis-tool.sh dump_logs
include:
- os: linux
dist: precise
sudo: false
service: mysql
- os: linux
dist: trusty
sudo: required
env: R_CODECOV=true
service: mysql
addons:
apt:
packages:
- libmysqlclient-dev
- os: osx
osx_image: xcode8.1
before_install:
- brew install mariadb
- mysql.server start
latex: false
- os: osx
osx_image: xcode8.1
before_install:
- brew install mysql
- mysql.server start
latex: false
- os: osx
osx_image: xcode8.1
disable_homebrew: true
r_check_args: '--no-tests'
before_script: 'echo no sql server, only testing build'
- os: osx
osx_image: beta-xcode6.4
disable_homebrew: true
r_check_args: '--no-tests'
before_script: 'echo no sql server, only testing build'

r_github_packages:
- rstats-db/DBI
- jimhester/covr
- rstats-db/DBItest@production

warnings_are_errors: true
#r_check_revdep: true

notifications:
email:
on_success: change
on_failure: change

before_script:
- mysql -e "create database IF NOT EXISTS test;" -uroot
- mysql -e "CREATE USER 'billy'@'localhost' IDENTIFIED BY 'supersecret';" -uroot
- printf "[rs-dbi]\nusername=billy\npassword=supersecret\n" > ~/.my.cnf

after_success:
- if [[ "${R_CODECOV}" ]]; then R -e 'covr::codecov()'; fi
47 changes: 27 additions & 20 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,37 +1,44 @@
Package: RMySQL
Version: 0.10.1
Version: 0.11-5
Title: Database Interface and MySQL Driver for R
Encoding: UTF-8
Description: Implements DBI-compliant Interface to MySQL and MariaDB Databases.
Authors@R: c(person("Jeroen", "Ooms", email = "jeroen.ooms@stat.ucla.edu", role = c("aut", "cre")),
Authors@R: c(person("Jeroen", "Ooms", email = "jeroen@berkeley.edu", role = c("aut", "cre")),
person("David", "James", role = "aut"),
person("Saikat", "DebRoy", role = "aut"),
person("Hadley", "Wickham", email = "hadley@rstudio.com", role = "aut"),
person("Jeffrey", "Horner", role = "aut"),
person("RStudio", role = "cph"))
person("RStudio", role = "cph"),
person("Kungliga Tekniska Högskolan", role = "ctb", comment = "Source code for timegm"))
Depends:
R (>= 2.8.0),
DBI (>= 0.3.1)
R (>= 2.8.0)
Imports:
methods
methods,
DBI (>= 0.3.1.9007),
Rcpp (>= 0.12.4)
Suggests:
testthat,
DBItest
LinkingTo: Rcpp, BH
License: GPL-2
URL: https://github.com/rstats-db/rmysql,
https://downloads.mariadb.org/client-native/
https://downloads.mariadb.org/connector-c/
BugReports: https://github.com/rstats-db/rmysql/issues
SystemRequirements: MySQL/MariaDB client headers and libraries, except on
Windows. E.g. libmysqlclient-dev (Debian/Ubuntu), mariadb-devel (Fedora).
SystemRequirements: libmariadb-client-lgpl-dev or libmysqlclient-dev (deb),
mariadb-connector-c-devel or mariadb-devel (rpm),
mariadb-connector-c or mysql-connector-c (brew)
NeedsCompilation: yes
Collate:
'mysql.R'
'driver.R'
'connection.R'
'data-type.R'
'MySQLConnection.R'
'MySQLDriver.R'
'MySQLResult.R'
'RMySQL.R'
'RcppExports.R'
'connect.R'
'default.R'
'escaping.R'
'result.R'
'extension.R'
'is-valid.R'
'deprecated.R'
'query.R'
'quote.R'
'table.R'
'transaction.R'
'zzz_compatibility.R'
Suggests:
testthat
RoxygenNote: 6.0.1
45 changes: 9 additions & 36 deletions NAMESPACE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by roxygen2 (4.1.0): do not edit by hand
# Generated by roxygen2: do not edit by hand

export(CLIENT_COMPRESS)
export(CLIENT_CONNECT_WITH_DB)
Expand All @@ -19,76 +19,49 @@ export(CLIENT_SECURE_CONNECTION)
export(CLIENT_SSL)
export(CLIENT_TRANSACTIONS)
export(MySQL)
export(dbApply)
export(dbEscapeStrings)
export(dbMoreResults)
export(dbNextResult)
export(dbGetQuery)
export(isIdCurrent)
export(mysqlBuildTableDefinition)
export(mysqlClientLibraryVersions)
export(mysqlDefault)
export(mysqlExecQuery)
export(mysqlHasDefault)
exportClasses(MySQLConnection)
exportClasses(MySQLDriver)
exportClasses(MySQLResult)
exportClasses(dbObjectId)
exportMethods(SQLKeywords)
exportMethods(dbApply)
exportMethods(dbBegin)
exportMethods(dbBind)
exportMethods(dbClearResult)
exportMethods(dbColumnInfo)
exportMethods(dbCommit)
exportMethods(dbConnect)
exportMethods(dbDataType)
exportMethods(dbDisconnect)
exportMethods(dbEscapeStrings)
exportMethods(dbExistsTable)
exportMethods(dbFetch)
exportMethods(dbGetException)
exportMethods(dbGetInfo)
exportMethods(dbGetRowCount)
exportMethods(dbGetRowsAffected)
exportMethods(dbGetStatement)
exportMethods(dbHasCompleted)
exportMethods(dbIsValid)
exportMethods(dbListConnections)
exportMethods(dbListFields)
exportMethods(dbListResults)
exportMethods(dbListTables)
exportMethods(dbMoreResults)
exportMethods(dbNextResult)
exportMethods(dbQuoteIdentifier)
exportMethods(dbQuoteString)
exportMethods(dbReadTable)
exportMethods(dbRemoveTable)
exportMethods(dbRollback)
exportMethods(dbSendQuery)
exportMethods(dbUnloadDriver)
exportMethods(dbWriteTable)
exportMethods(fetch)
exportMethods(isSQLKeyword)
exportMethods(make.db.names)
exportMethods(show)
exportMethods(summary)
import(DBI)
import(methods)
importFrom(Rcpp,sourceCpp)
importFrom(utils,read.table)
importFrom(utils,write.table)
useDynLib(RMySQL)
useDynLib(RMySQL,RS_MySQL_cloneConnection)
useDynLib(RMySQL,RS_MySQL_closeConnection)
useDynLib(RMySQL,RS_MySQL_closeResultSet)
useDynLib(RMySQL,RS_MySQL_connectionInfo)
useDynLib(RMySQL,RS_MySQL_dbApply)
useDynLib(RMySQL,RS_MySQL_exec)
useDynLib(RMySQL,RS_MySQL_fetch)
useDynLib(RMySQL,RS_MySQL_moreResultSets)
useDynLib(RMySQL,RS_MySQL_newConnection)
useDynLib(RMySQL,RS_MySQL_nextResultSet)
useDynLib(RMySQL,RS_MySQL_resultSetInfo)
useDynLib(RMySQL,rmysql_connection_valid)
useDynLib(RMySQL,rmysql_driver_close)
useDynLib(RMySQL,rmysql_driver_info)
useDynLib(RMySQL,rmysql_driver_init)
useDynLib(RMySQL,rmysql_driver_valid)
useDynLib(RMySQL,rmysql_escape_strings)
useDynLib(RMySQL,rmysql_exception_info)
useDynLib(RMySQL,rmysql_fields_info)
useDynLib(RMySQL,rmysql_result_valid)
useDynLib(RMySQL,rmysql_version)
83 changes: 83 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,86 @@
## RMySQL 0.11-5 (2016-12-29)

- Add package-level documentation (#159, @Ironholds).
- The `host` and `db` slots of the `MySQLConnection` object now contain actual host and database names, even if they were retrieved from a configuration file (#127, @peternowee).
- Fix typos in the documentation of `dbConnect()` (#175, @mcol).


## RMySQL 0.11-4 (2016-12-29)

- Adapt to `DBItest` changes.
- Fix compiler warnings.
- Improve compatibility with different versions of `libmysql`.


# RMySQL 0.11-3 (2016-06-08)

- Fix failing compilation on Linux if a function is declared elsewhere.
- More robust check for numeric `NA` values.
- New SSL-related arguments to `dbConnect()`: `ssl.key`, `ssl.cert`, `ssl.ca`, `ssl.capath`, `ssl.cipher` (#131, #148, @adamchainz).
- Add `TAGS` file to .gitignore (@sambrightman, #78).
- Can build with MariaDB libraries on Ubuntu (#145).
- Use new `sqlRownamesToColumn()` and `sqlColumnToRownames()` (rstats-db/DBI#91).
- Use `const&` for `Rcpp::Nullable` (@peternowee, #129).
- Use container-based builds on Travis (#143).


# RMySQL 0.11-2 (2016-03-29)

- Use the `DBItest` package for testing (#100).


# RMySQL 0.11-1 (2016-03-24)

* RMySQL fully supports DATE and DATETIME columns. On output, DATE columns
will be converted to vectors of `Date`s and DATETIME will be converted
to `POSIXct`. To faciliate correct computation of time zone, RMySQL
always sets the session timezone to UTC.

* RMySQL has been rewritten (essentially from scratch) in C++ with
Rcpp. This has considerably reduced the amount of code, and allow us to
take advantage of the more sophisticated memory management tools available in
Rcpp. This rewrite should yield some minor performance improvements, but
most importantly protect against memory leaks and crashes. It also provides
a better base for future development.

* Support for prepared queries: create prepared query with `dbSendQuery()`
and bind values with `dbBind()`. `dbSendQuery()` and `dbGetQuery()` also
support inline parameterised queries, like
`dbGetQuery(mysqlDefault(), "SELECT * FROM mtcars WHERE cyl = :cyl",
params = list(cyl = 4))`. This has no performance benefits but protects you
from SQL injection attacks.

* `dbListFields()` has been removed. Please use `dbColumnInfo()` instead.

* `dbGetInfo()` has been removed. Please use the individual metadata
functions.

* Information formerly contain in `summary()` methods has now been integrated
into `show()` methods.

* `make.db.names()` has been deprecated. Use `dbQuoteIdentifier()` instead.

* `isIdCurrent()` has been deprecated. Use `dbIsValid()` instead.

* `dbApply()`, `dbMoreResults()` and `dbNextResults()` have been removed.
These were always flagged as experimental, and now the experiment is over.

* `dbEscapeStrings()` has been deprecated. Please use `dbQuoteStrings()`
instead.

* dbObjectId compatibility shim removed

* Add SSL support on Windows.

* Fix repetition of strings in subsequent rows (@peternowee, #125).

* Always set connection character set to utf-8

* Backport build system improvements from stable branch

* Reenable Travis-CI, switch to R Travis, collect coverage


# Version 0.10.1

* Fix configure script for OSX 10.6 Snow Leopard
Expand Down
Loading