python from crate import client connection = client.connect(['localhost:4200']) cursor = connection.cursor() cursor.execute('SELECT * FROM my_table') result = cursor.fetchall() for row in result: print(row) cursor.close() connection.close() yaml cluster.name: crate-cluster node.name: crate-node network.host: _site_ http.port: 4200 discovery.seed_hosts: ["localhost"]


上一篇:
下一篇:
切换中文