mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-07-23 01:14:31 +02:00
parent
22250a9c73
commit
8ea626e5fc
1 changed files with 10 additions and 0 deletions
|
|
@ -8,6 +8,12 @@ import pathlib
|
|||
|
||||
SQLITE_MAX_VARS = 999
|
||||
|
||||
|
||||
try:
|
||||
import pandas as pd
|
||||
except ImportError:
|
||||
pd = None
|
||||
|
||||
try:
|
||||
import numpy as np
|
||||
except ImportError:
|
||||
|
|
@ -64,6 +70,10 @@ if np:
|
|||
}
|
||||
)
|
||||
|
||||
# If pandas is available, add more types
|
||||
if pd:
|
||||
COLUMN_TYPE_MAPPING.update({pd.Timestamp: "TEXT"})
|
||||
|
||||
|
||||
class AlterError(Exception):
|
||||
pass
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue