Skip to content

creativeautomaton/pocketbase_import_csv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

pocketbase import csv

A simple file to bulk import csv or json files

in the cli from the directory pocketbase is running from try :

./pocketbase import_csv books.csv books

if the books coleection from the pocketbase admin doesnt have the collection books it should give an error like this, collection ${collection_name} doesn't exist -- this is good`

if the collection does exite it should say, collection ${collection_name} already exists`

which is good.

try it only is to grab exports from a admin sql export then quickly import into pocketbase instead of trying to get a json file to work though i have tried to also just add a import_json function to be a bit flexible.

About

A simple file to bulk import csv or json files

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published