Skip to main content

This package converts csv to sql table.

Project description

‘’’

import csv2sqltable.convert as c2s

print(c2s.transform(‘customer.csv’))

Output:

%%sql – DROP TABLE customer;

CREATE TABLE customer ( customer_id VARCHAR(100), customername VARCHAR(100), lastname VARCHAR(100), country VARCHAR(100), age VARCHAR(100), phone VARCHAR(100) );

INSERT INTO customer (customer_id, customername, lastname, country, age, phone) VALUES (‘1’, ‘Shubham’, ‘Thakur’, ‘India’, ‘23’, ‘xxxxxxxxxx’), (‘2’, ‘Aman’, ‘Chopra’, ‘Australia’, ‘21’, ‘xxxxxxxxxx’), (‘3’, ‘Naveen’, ‘Tulasi’, ‘Sri Lanka’, ‘24’, ‘xxxxxxxxxx’), (‘4’, ‘Aditya’, ‘Arpan’, ‘Austria’, ‘21’, ‘xxxxxxxxxx’), (‘5’, ‘Nishant. Salchichas S.A.’, ‘Jain’, ‘Spain’, ‘22’, ‘xxxxxxxxxx’);

SELECT * FROM customer;

‘’’

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

csv2sqltable-0.0.4.tar.gz (2.5 kB view details)

Uploaded Source

File details

Details for the file csv2sqltable-0.0.4.tar.gz.

File metadata

  • Download URL: csv2sqltable-0.0.4.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.13

File hashes

Hashes for csv2sqltable-0.0.4.tar.gz
Algorithm Hash digest
SHA256 b5881adb5f7ba221e22f1a01e52a97a1d6554430e779a25995b9d9f5ec8171ba
MD5 8674fcc7e7a45095956824fda87f7cd2
BLAKE2b-256 e7d289c3942f5f929f2f13b55da12866bb65917335466fa1df5a8d6850c7d813

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page