This file contains hidden or 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
| void preparePostgreSQL() { | |
| print("Testing Insert into postgresql..."); | |
| var uri = 'postgres://name:[email protected]:5432/mydb'; | |
| connect(uri).then((conn) { | |
| //conn.execute("create table data (id int, name text, description text, PRIMARY KEY(id)); ").whenComplete(() { | |
| // conn.close(); | |
| //}); | |
| int startTime = new DateTime.now().millisecondsSinceEpoch; | |
| List<Future> futures = new List(); | |
| String sql = ""; |
This file contains hidden or 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
| void testQueryCouchBaseWithViewAndStaleFalse() { | |
| print("Testing Query CouchBase with View..."); | |
| CouchClient _dbclient; | |
| CouchClient.connect([Uri.parse("http://10.1.4.112:8091/pools")], "default", "").then((CouchClient c) { | |
| _dbclient = c; | |
| }).then((_) { | |
This file contains hidden or 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
| void testQueryCouchBaseWithoutView() { | |
| print("Testing Query CouchBase without View..."); | |
| CouchClient _dbclient; | |
| CouchClient.connect([Uri.parse("http://10.1.4.112:8091/pools")], "default", "").then((CouchClient c) { | |
| _dbclient = c; | |
| }).then((_) { | |
This file contains hidden or 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
| void prepareCouchBase() { | |
| print("Testing Insert CouchBase"); | |
| CouchClient _dbclient; | |
| CouchClient.connect([Uri.parse("http://10.1.4.112:8091/pools")], "default", "").then((CouchClient c) { | |
| _dbclient = c; | |
| }).then((_) { | |
| int startTime = new DateTime.now().millisecondsSinceEpoch; |
This file contains hidden or 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
| void testUpdateCouchBaseWithoutView() { | |
| print("Testing Update CouchBase without View..."); | |
| CouchClient _dbclient; | |
| CouchClient.connect([Uri.parse("http://10.1.4.112:8091/pools")], "default", "").then((CouchClient c) { | |
| _dbclient = c; | |
| }).then((_) { | |
NewerOlder