Comments (1)
The driver is working with time.Time, but you need to declare the column as TIMESTAMP (not TEXT TIMESTAMP) when creating the table:
"CREATE TABLE times (id INTEGER, datetime TIMESTAMP)"
Notice that you can not insert a time zone:
var datetime = time.Now().UTC()
var INSERT = fmt.Sprintf("INSERT INTO times (id, datetime) VALUES(0, '%v')",
datetime.Format("2006-01-02T15:04:05.999999999"))
from go-sqlite3.
Related Issues (20)
- [Want help] How to use compiled go-sqlite3 on Windows? HOT 6
- RETURNING directive is not working. HOT 1
- strange disk I/O error: read-only file system, need help HOT 5
- Performance when not using build tag "libsqlite3" HOT 2
- Making Virtual Table Implementation Multi Tenant HOT 2
- Ordering of query parameters HOT 1
- gcc dependency removel HOT 1
- LastInsertId and RowsAffected methods of sqlite.Result object return constant nil error HOT 1
- SIGSEGV when create a table HOT 3
- Possible memory leak, with reproduce repo HOT 17
- Error "database is locked" in wal mode HOT 1
- Changing PRAGMA user_version via placeholders does not work; Without placeholders it works fine HOT 2
- In-memory database access fails with multiple goroutines HOT 3
- v3.45.0 release HOT 3
- v3.45.1 release HOT 1
- Scanning of timestamps not working when using "with time zone"
- Support for custom window functions
- Drop static_mock.go
- Getting Errors with go-sqlite3 HOT 4
- env “TMPDIR" can't change the tmp store diretory HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from go-sqlite3.