Skip to content
All references

Data reference

SQL INSERT Import Preparation

Prepare reviewable database imports with explicit scalar types, quoted identifiers, dialect-specific strings and starter schemas.

8 of 8 entries

Types

CSV cells do not declare database types

code,score
0012,95

CSV-to-SQL preserves both values as text. This keeps leading zeros and avoids guessing application types from a cell's spelling.

Types

JSON scalar types can guide a starter schema

[{"name":"Ava","score":95,"active":true}]

JSON strings, finite numbers, booleans and null values remain distinguishable. Nested objects or arrays need an explicit flattening or storage policy before a tabular import.

Types

A missing JSON field becomes NULL

[{"id":1,"note":"x"},{"id":2}]

The converter gathers columns in first-seen order. A record missing a column receives SQL NULL for that column, which differs from the text NULL or an empty string.

Names

Quote identifiers separately from values

PostgreSQL/SQLite: "order"
MySQL: `order`

Table and column names use the chosen dialect's identifier quoting. A table-name field is one identifier; it is not a SQL expression or a schema-qualified fragment.

Strings

Apostrophes and backslashes need a dialect

O'Brien and C:\archive

The generator escapes string values using the selected database rules. MySQL text is encoded as UTF-8 hex literals to avoid relying on a backslash-escaping SQL mode.

Names

Case collisions can break an import

Name and name

PostgreSQL quoted names distinguish letter case, while MySQL and SQLite column names need different treatment. The converter rejects case-only column duplicates for those targets.

Schema

Starter types are not an application schema

TEXT / NUMERIC / BOOLEAN

An optional CREATE TABLE statement is a starting point. It does not infer primary keys, uniqueness, foreign keys, defaults, indexes or application validation constraints.

Review

Generate first, review before executing

CSV/JSON → SQL text → review → your database client

BigForgeKit never connects to a database or runs the script. Review names, types, null semantics, encoding and import permissions in the destination environment.