This Go package implements the host-side of the Flutter sqflite plugin.
Import as:
import "github.com/nealwon/go-flutter-plugin-sqlite"
import "database/sql" // for initialize
Then add the following option to your go-flutter application options:
flutter.AddPlugin(&sqflite.SqflitePlugin{
VendorName: "myOrganizationOrUsername",
ApplicationName: "myApplicationName",
databases: make(map[int32]*sql.DB),
databasePaths: make(map[int32]string),
}),
Change the values of the Vendor and Application names to a custom and unique string, so it doesn't conflict with other organizations.