mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-09-09 01:54:21 +02:00
'sqlite-utils add-column name type' command, closes #15
This commit is contained in:
parent
05a85b358f
commit
0bc49e938e
5 changed files with 80 additions and 8 deletions
|
|
@ -4,9 +4,10 @@ import datetime
|
|||
import json
|
||||
import pathlib
|
||||
import pytest
|
||||
import re
|
||||
import sqlite3
|
||||
|
||||
from .utils import collapse_whitespace
|
||||
|
||||
try:
|
||||
import pandas as pd
|
||||
except ImportError:
|
||||
|
|
@ -364,10 +365,3 @@ def test_create_table_numpy(fresh_db):
|
|||
"np.uint8": 8,
|
||||
}
|
||||
] == list(fresh_db["types"].rows)
|
||||
|
||||
|
||||
COLLAPSE_RE = re.compile("\s+")
|
||||
|
||||
|
||||
def collapse_whitespace(s):
|
||||
return COLLAPSE_RE.sub(" ", s)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue