Last active
July 22, 2017 20:14
-
-
Save chapani/0dd134930705c0c1cf5f7bd6a491eb96 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# A sample TOML config file for tocb. | |
#===================================================================== | |
# couchbase data | |
#--------------------------------------------------------------------- | |
[couchbase] | |
# "localhost" or IP | |
host = "localhost" | |
# bucket name | |
bucket = "bucketName" | |
# bucket password | |
password = "bucketPassword" | |
#===================================================================== | |
# handler type: mysql | sqlite | |
#--------------------------------------------------------------------- | |
# source database type | |
handler = "mysql" | |
#===================================================================== | |
# MySQL data | |
#--------------------------------------------------------------------- | |
[mysql] | |
# "localhost" or IP | |
host = "localhost" | |
# mysql username | |
user = "userName" | |
# mysql user password | |
password = "password" | |
# mysql database name | |
dbname = "databaseName" | |
#===================================================================== | |
# Sqlite data | |
#--------------------------------------------------------------------- | |
[sqlite] | |
# path to database file | |
dbpath = "./sample.db" | |
#===================================================================== | |
# query objects. Multiple queries are allowed | |
#--------------------------------------------------------------------- | |
# first sql query object | |
[[query]] | |
# sql query | |
sql = "SELECT * FROM articles LIMIT 100" | |
# additional optional properties to add to each document | |
# (string | integer | float | boolean) are allowed | |
[query.props] | |
type = "article" | |
author = "johndoe" | |
weight = 0.9 | |
# another sql query object | |
[[query]] | |
# sql query | |
sql = "SELECT * FROM posts LIMIT 100" | |
# additional optional properties to add to each document | |
# (string | integer | float | boolean) are allowed | |
[query.props] | |
type = "post" | |
author = "johndoe" | |
sticky = true | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment