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
const cassandra = require('cassandra-driver'); | |
const client = new cassandra.Client({ | |
cloud: { secureConnectBundle: 'path/to/secure-connect-DATABASE_NAME.zip' }, | |
credentials: { username: 'username', password: 'password' } | |
keyspace: 'demo' | |
}); | |
function createTable(){ |
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
using Cassandra; | |
using System.Linq; | |
using System; | |
namespace QuickStart | |
{ | |
class AstraConnect | |
{ | |
static void Main(string[] args) | |
{ |
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
import com.datastax.oss.driver.api.core.CqlSession; | |
import com.datastax.oss.driver.api.core.cql.*; | |
import java.nio.file.Paths; | |
public class AstraConnect { | |
public static void main(String[] args) { | |
// TO DO: Fill in your own host, port, and data center |
OlderNewer