capacitor.core documentation
->field
(->field k v)
(->field x)
Make a Field record, optionally from a vector, a map, or a Field
->line
(->line p)
Dump Point record to line
->lines
(->lines ps)
Dump collection of Point records to lines
->point
(->point measurement tags fields timestamp)
(->point x)
Make a Point record
->tag
(->tag k v)
(->tag x)
Make a Tag record, optionally from a vector, a map, or a Tag
->timestamp
(->timestamp x)
Make a Timestamp record, from a Long, a String, or a Timestamp
create-db
(create-db client)
Create database defined in client
create-db-user
(create-db-user client username password)
(create-db-user client username password permissions)
Create new database user
db-query
(db-query client q & [results->maps?])
Perform arbitrary query string
delete-db
(delete-db client)
Delete database defined in client
delete-user
(delete-user client username)
Delete user
grant-db-user-permissions
(grant-db-user-permissions client username permissions)
Grant database user privileges
list-db-users
(list-db-users client & [results->maps?])
List database users
list-dbs
(list-dbs client)
Returns list of database names
list-series
(list-series client & [results->maps?])
List series
list-user-permissions
(list-user-permissions client username & [results->maps?])
Show database user privileges
make-client
(make-client opts)
Returns a map representing an HTTP client configuration.
Valid options:
:host (default: "localhost")
:scheme (default: "http://")
:port (default: 8086)
:username (default "root")
:password (default "root")
:db (default: "testdb")
:version (default: "0.9")
:post-opts (http post options, default: "nil")
:get-opts (http get options, default: "nil")
ping
(ping client)
Get database status. Returns ping time in ms
revoke-db-user-permissions
(revoke-db-user-permissions client username permissions)
Revoke database user privileges
update-user-password
(update-user-password client username password)
Update database user password
version
(version client)
Get database version
write-lines
(write-lines client lines)
Write using raw line String
write-point
(write-point client point)
Write Point record to database defined in client
write-points
(write-points client points)
Write collection of Point records to database defined in client