init_extensions(RSQLite.extfuns)
init_extensions()所属R语言包:RSQLite.extfuns
Initialize SQLite extension functions on a SQLite DB connection
初始化的SQLite扩展功能上SQLite数据库连接
译者:生物统计家园网 机器人LoveR
描述----------Description----------
This function loads extension functions to make them available to an RSQLite database connection. The databse connection needs to have been created by passing loadable.extensions = TRUE to dbConnect (this is the default as of RSQLite 0.9-1).
该函数用于加载扩展功能,使他们提供到一个RSQLite的数据库连接。数据库对连接需要通过loadable.extensions = TRUEdbConnect(这是默认的RSQLite 0.9-1)已创建。
用法----------Usage----------
init_extensions(db)
参数----------Arguments----------
参数:db
An RSQLite database connection as returned by dbConnect.
一个RSQLite的数据库连接返回dbConnect。
值----------Value----------
TRUE if the extensions were successfully loaded.
TRUE,如果成功加载的扩展。
(作者)----------Author(s)----------
Seth Falcon
参考文献----------References----------
For details on loadable extensions in SQLite, see http://www.sqlite.org/cvstrac/wiki?p=LoadableExtensions.
The extensions functions included in this package were written by Liam Healy and made available in the contrib section of the SQLite website (http://www.sqlite.org/contrib).
参见----------See Also----------
The package manual page has a complete list of the extension functions: RSQLite.extfuns
包手册页面的扩展功能的完整列表:RSQLite.extfuns
实例----------Examples----------
db <- dbConnect(SQLite(), dbname = ":memory:",
loadable.extensions = TRUE)
init_extensions(db)
data(USArrests)
dbWriteTable(db, "t1", USArrests)
dbGetQuery(db, "select variance(Murder) from t1")[[1]]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|