File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
tools/src/main/java/com/datastax/astra/tool Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -17,11 +17,11 @@ public class CsvLoaderAnoop {
17
17
18
18
public static void main (String [] args ) throws Exception {
19
19
DataAPIClient client =
20
- new DataAPIClient ("AstraCS:rhZhqUkdzcYSlRNUfZjiZApq:c36d4c0575d4e471a93618a1586bf7b6be970fc3a5442f711fd79a932f98fb09 " );
20
+ new DataAPIClient ("replace_me " );
21
21
Database db =
22
- client .getDatabase ("https://07cae943-ea78-4d65-ac2a-a9e819e2d5d3-us-east1.apps.astra.datastax.com " );
22
+ client .getDatabase ("replace_me " );
23
23
Collection <Document > collection =
24
- db .createCollection ("best_buy2 " );
24
+ db .createCollection ("best_buy " );
25
25
collection .deleteAll ();
26
26
CsvLoader .load (
27
27
"/Users/cedricklunven/Downloads/anoop.csv" ,
Original file line number Diff line number Diff line change 3
3
import com .datastax .astra .client .Collection ;
4
4
import com .datastax .astra .client .DataAPIClient ;
5
5
import com .datastax .astra .client .Database ;
6
- import com .datastax .astra .client .model .DataAPIKeywords ;
7
6
import com .datastax .astra .client .model .Document ;
8
7
import com .datastax .astra .tool .csv .CsvLoader ;
9
8
import com .datastax .astra .tool .csv .CsvRowMapper ;
You can’t perform that action at this time.
0 commit comments